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.
 
EntitydeclareEntity (const Pt::String &name)
 Returns the entity or a nullptr if already declared.
 
NotationdeclareNotation (const Pt::String &name)
 Returns the notation or a nullptr if already declared.
 
EntitydeclareParamEntity (const Pt::String &name)
 Returns the entity or a nullptr if already declared.
 
const EntityfindEntity (const Pt::String &name) const
 Returns the entity or a nullptr if not declared.
 
const NotationfindNotation (const Pt::String &name) const
 Returns the notation or a nullptr if not declared.
 
const EntityfindParamEntity (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 QNamerootName () const
 Returns the documents root element name.
 
QNamerootName ()
 Returns the documents root element name.
 

Detailed Description

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