cxxtools::xml::DocTypeDeclaration Class Reference

A DocType element (Node) of an XML document. More...

#include <cxxtools/xml/doctypedeclaration.h>

Inheritance diagram for cxxtools::xml::DocTypeDeclaration:
cxxtools::xml::Node

Public Member Functions

 DocTypeDeclaration ()
 Constructs a new DocTypeDeclaration object with the given string as content.
void clear ()
DocTypeDeclarationclone () const
 Clones this DocTypeDeclaration object by creating a duplicate on the heap and returning it.
const Stringcontent () const
 Returns the content of this DocTypeDeclaration object.
Stringcontent ()
void setContent (const String &content)
 Sets the content of this DocTypeDeclaration object.
- Public Member Functions inherited from cxxtools::xml::Node
 Node (Type type)
 Constructs a new Node object with the specified node type.
virtual ~Node ()
 Empty destructor.
Type type () const
 Returns the type of this Node that can be used to determine what specific Node this object is.
virtual bool operator== (const Node &node) const
 Compares this Node object with the given node.

Additional Inherited Members

- Public Types inherited from cxxtools::xml::Node
enum  Type {
  Unknown = 0, StartDocument = 1, DocType = 2, EndDocument = 3,
  StartElement = 4, EndElement = 5, Characters = 6, Comment,
  ProcessingInstruction
}

Detailed Description

A DocType element (Node) of an XML document.

A DocType element stores the document type of the document and contains an URI to a file which contains the document type definition.

Use content() to get the content of the DocType element.

See Also
Node

Constructor & Destructor Documentation

cxxtools::xml::DocTypeDeclaration::DocTypeDeclaration ( )
inline

Constructs a new DocTypeDeclaration object with the given string as content.

Member Function Documentation

void cxxtools::xml::DocTypeDeclaration::clear ( )
inline
DocTypeDeclaration* cxxtools::xml::DocTypeDeclaration::clone ( ) const
inlinevirtual

Clones this DocTypeDeclaration object by creating a duplicate on the heap and returning it.

Returns
A cloned version of this DocTypeDeclaration object.

Implements cxxtools::xml::Node.

const String& cxxtools::xml::DocTypeDeclaration::content ( ) const
inline

Returns the content of this DocTypeDeclaration object.

Returns
The content of this DocTypeDeclaration object.
String& cxxtools::xml::DocTypeDeclaration::content ( )
inline
void cxxtools::xml::DocTypeDeclaration::setContent ( const String content)
inline

Sets the content of this DocTypeDeclaration object.

Parameters
contentThe new content for this DocTypeDeclaration object.

The documentation for this class was generated from the following file: