#include <Pt/Xml/DocTypeDefinition.h>
The DocTypeDefinition of an XML document. More...
Inherits NonCopyable.
Public Member Functions | |
DocTypeDefinition () | |
Construct an empty DocType node. | |
~DocTypeDefinition () | |
Destructor. | |
void | clear () |
Clears all content. | |
Entity * | declareEntity (const Pt::String &name) |
Returns the entity or a nullptr if already declared. | |
Notation * | declareNotation (const Pt::String &name) |
Returns the notation or a nullptr if already declared. | |
Entity * | declareParamEntity (const Pt::String &name) |
Returns the entity or a nullptr if already declared. | |
const Entity * | findEntity (const Pt::String &name) const |
Returns the entity or a nullptr if not declared. | |
const Notation * | findNotation (const Pt::String &name) const |
Returns the notation or a nullptr if not declared. | |
const Entity * | findParamEntity (const Pt::String &name) const |
Returns the entity or a nullptr if not declared. | |
bool | isDefined () const |
Returns true if a DTD was defined in the document. | |
void | removeEntity (const Pt::String &name) |
Removes the entity with the given name. | |
void | removeNotation (const Pt::String &name) |
Removes the notation with the given name. | |
void | removeParamEntity (const Pt::String &name) |
Removes the entity with the given name. | |
const QName & | rootName () const |
Returns the documents root element name. | |
QName & | rootName () |
Returns the documents root element name. | |
A DocTypeDefinition contains all entity, notation, element and attribute list declarations from the external and internal DTD subsets.