decXmlDocument Class Reference

XML Document. More...

#include <decXmlDocument.h>

Inheritance diagram for decXmlDocument:
decXmlContainer decXmlElement

List of all members.

Public Member Functions

Constructors and Destructors
 decXmlDocument ()
 Creates a new xml document.
 ~decXmlDocument ()
 Cleans up the xml document.
Management
const char * GetEncoding () const
void SetEncoding (const char *encoding)
const char * GetDocType () const
void SetDocType (const char *docType)
const char * GetSystemLiteral () const
void SetSystemLiteral (const char *sysLit)
const char * GetPublicLiteral () const
void SetPublicLiteral (const char *sysLit)
bool GetStandalone () const
void SetStandalone (bool standalone)
decXmlElementTagGetRoot () const
 Retrieves the root element.
Visiting
void Visit (decXmlVisitor *visitor)
 Visits this node.
Predefined Visitors
void CleanCharData ()
 Cleans character data tags by processing the html formating tags in them.
void StripComments ()
 Removes all comment tags.
Casting
virtual bool CanCastToDocument ()
 Determines if this element can be cast to decXmlDocument which is by default false.
virtual decXmlDocumentCastToDocument ()
 Safely casts this element to decXmlDocument or throwns an exception otherwise.

Detailed Description

XML Document.

This is the root of a parsed XML file and has therefore no parent. This is a XML container which allows to have only one child element. All additional elements are ignored.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decXmlDocument::decXmlDocument (  )

Creates a new xml document.

decXmlDocument::~decXmlDocument (  )

Cleans up the xml document.


Member Function Documentation

virtual bool decXmlDocument::CanCastToDocument (  ) [virtual]

Determines if this element can be cast to decXmlDocument which is by default false.

Reimplemented from decXmlElement.

virtual decXmlDocument* decXmlDocument::CastToDocument (  ) [virtual]

Safely casts this element to decXmlDocument or throwns an exception otherwise.

Reimplemented from decXmlElement.

void decXmlDocument::CleanCharData (  )

Cleans character data tags by processing the html formating tags in them.

const char* decXmlDocument::GetDocType (  ) const [inline]
const char* decXmlDocument::GetEncoding (  ) const [inline]
const char* decXmlDocument::GetPublicLiteral (  ) const [inline]
decXmlElementTag* decXmlDocument::GetRoot (  ) const

Retrieves the root element.

bool decXmlDocument::GetStandalone (  ) const [inline]
const char* decXmlDocument::GetSystemLiteral (  ) const [inline]
void decXmlDocument::SetDocType ( const char *  docType )
void decXmlDocument::SetEncoding ( const char *  encoding )
void decXmlDocument::SetPublicLiteral ( const char *  sysLit )
void decXmlDocument::SetStandalone ( bool  standalone )
void decXmlDocument::SetSystemLiteral ( const char *  sysLit )
void decXmlDocument::StripComments (  )

Removes all comment tags.

void decXmlDocument::Visit ( decXmlVisitor visitor ) [virtual]

Visits this node.

Reimplemented from decXmlContainer.


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