Main Page   Class Hierarchy   Compound List   File List   Compound Members  

XMLDocument Class Reference

An XML Document. More...

#include <XMLDocument.h>

Inheritance diagram for XMLDocument:

Inheritance graph
[legend]
Collaboration diagram for XMLDocument:

Collaboration graph
[legend]
List of all members.

Public Methods

 XMLDocument (const XMLProcInst &prolog=XMLProcInst("xml"), const SpecialTag &doctype=SpecialTag(), const XMLement *root=NULL, const list< SpecialTag *> &footers=list< SpecialTag *>())
 Constructor. More...

void SetProlog (const XMLProcInst &newProlog)
 Set the document prolog.

void SetDocType (const SpecialTag &doctype)
 Set the document doctype.

void SetRoot (const XMLement *newRoot)
 Set the document root element.

void SetFooters (const list< SpecialTag *> newFooters)
 Set the document's footers.

virtual string ToString () const
 Convert to a string.

Inspectors
XMLProcInst GetProlog () const
 Returns the document prolog.

SpecialTag GetDocType () const
 returns the document doctype.

XMLement* GetRoot () const
 returns the document root element.

list<SpecialTag*> GetFooters () const
 returns the document's footers.


Protected Methods

void Init (const XMLProcInst &newProlog, const SpecialTag &doctype, const XMLement *newRoot, const list< SpecialTag *> &footers)
 Initializer. More...

XMLDocument& Copy (const XMLDocument &rhs)
 Copy Constructor.

void NullifyPointers ()
 initialize all ptrs to NULL.

void Clear ()
 delete all ptrs.

bool Equals (const XMLDocument &rhs) const
 operator==.


Detailed Description

An XML Document.


Constructor & Destructor Documentation

XMLDocument::XMLDocument ( const XMLProcInst & prolog = XMLProcInst("xml"),
const SpecialTag & doctype = SpecialTag(),
const XMLement * root = NULL,
const list< SpecialTag *> & footers = list<SpecialTag*>() )
 

Constructor.

Parameters:
prolog:   the <?xml foo="Bar">
doctype:   the <!DOCTYPE>
root:   the root element of the document
footers:   any <!TAG> footers


Member Function Documentation

void XMLDocument::Init ( const XMLProcInst & newProlog,
const SpecialTag & doctype,
const XMLement * newRoot,
const list< SpecialTag *> & footers ) [protected]
 

Initializer.

See also:
XMLDocument()


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 21:04:52 2001 for libXMLDocument by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001