CXMLDocument



Member Functions

CXMLDocument

   public:

CXMLDocument();

object constructor


getRoot

   public:

CElement *getRoot();

Result: returns a pointer to a CElement object that is the root of the document

setRoot

   public:

void setRoot(CElement* root);

Sets the document root element

Parameters

NameDescription
roota pointer to a CElement object that will be the root of this document

validateRoot

   public:

bool validateRoot(const char* elemName, const char* xnamespace);

Parameters

NameDescription
elemNamethe generic identifier of the element to be found
xnamespacethe XML namespace
Result: returns true if the root element's generic identifier and namespace match the values specified in the function parameters.

~CXMLDocument

   public:

virtual ~CXMLDocument();

object destructor


Member Data

m_root

protected:
 CElement *m_root;

the document's root element


© 1999-2000, Thomas Bednarz, Jr. — (Last Updated 7/16/2000)