DocTypeDefinition Class Reference

#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.
bool isDefined () const
 Returns true if a DTD was defined in the document.
const QName & rootName () const
 Returns the documents root element name.
QName & rootName ()
 Returns the documents root element name.
Entity * declareEntity (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.
void removeEntity (const Pt::String &name)
 Removes the entity with the given name.
Entity * declareParamEntity (const Pt::String &name)
 Returns the entity or a nullptr if already declared.
const Entity * findParamEntity (const Pt::String &name) const
 Returns the entity or a nullptr if not declared.
void removeParamEntity (const Pt::String &name)
 Removes the entity with the given name.
Notation * declareNotation (const Pt::String &name)
 Returns the notation or a nullptr if already declared.
const Notation * findNotation (const Pt::String &name) const
 Returns the notation or a nullptr if not declared.
void removeNotation (const Pt::String &name)
 Removes the notation with the given name.

Detailed Description

A DocTypeDefinition contains all entity, notation, element and attribute list declarations from the external and internal DTD subsets.