#include <Pt/Xml/DocTypeValidator.h>
Validates an XML document against a DTD. More...
Inherits NonCopyable.
Public Member Functions | |
| DocTypeValidator (DocTypeDefinition &dtd) | |
| Construct an empty DocType node. | |
| ~DocTypeValidator () | |
| Destructor. | |
| void | reset () |
| Clears the validator to start a new document. | |
| bool | validate (Node &node) |
| Returns true if the node is valid. | |
An XML document can be validated against its DTD by passing all XML nodes on to a DocTypeValidator. Note, that it is also possible to validate XML against a DTD from a different source.