#include <Pt/Xml/DocType.h>
A DocType node represents the begin of a DTD. More...
Inherits Node, and NonCopyable.
Public Member Functions | |
DocType (DocTypeDefinition &dtd) | |
Construct an empty DocType node. | |
~DocType () | |
Destructor. | |
void | clear () |
Clears all content. | |
bool | isExternal () const |
Returns true if the external DTD subset begins. | |
bool | isInternal () const |
Returns true if the internal DTD subset begins. | |
const Pt::String & | publicId () const |
Returns the public ID of the external subset. | |
const QName & | rootName () const |
Returns the documents root element name. | |
void | setInternal (bool hasInternal) |
Indicates the begin of internal or external DTD subsets. | |
void | setPublicId (const Pt::String &pubId) |
Sets the public ID of the external subset. | |
void | setSystemId (const Pt::String &sysId) |
Sets the system ID of the external subset. | |
const Pt::String & | systemId () const |
Returns the system ID of the external subset. | |
Type | type () const |
Returns the type of the node. | |
Related Functions | |
DocType * | toDocType (Node *node) |
Casts a generic node to a DocType node. | |
const DocType * | toDocType (const Node *node) |
Casts a generic node to a DocType node. | |
DocType & | toDocType (Node &node) |
Casts a generic node to a DocType node. | |
const DocType & | toDocType (const Node &node) |
Casts a generic node to a DocType node. | |
DocType nodes are only reported when the XmlReader is configured to do so. DocType nodes might appear twice, before the internal DTD subset is parsed and before the external DTD subset is parsed. An EndDocType node indicates that a DTD subset is complete.