Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::xml::XMLDocument Class Reference

#include <omXMLDocument.h>

Public Member Functions

 XMLDocument (const Shared< XMLNode > &newRoot)
 Create a new XML document which uses the specified node as its root node. More...
 
const Shared< XMLNode > & getRoot () const
 Return a pointer to the root node for this document. More...
 
void setRoot (const Shared< XMLNode > &newRoot)
 Set the root node for this XML document. More...
 
UTF8String toString () const
 Convert this XML document to a valid XML document string. More...
 

Constructor & Destructor Documentation

om::xml::XMLDocument::XMLDocument ( const Shared< XMLNode > &  newRoot)

Create a new XML document which uses the specified node as its root node.

Member Function Documentation

const Shared<XMLNode>& om::xml::XMLDocument::getRoot ( ) const
inline

Return a pointer to the root node for this document.

void om::xml::XMLDocument::setRoot ( const Shared< XMLNode > &  newRoot)
inline

Set the root node for this XML document.

This method completely replaces the current contents of the document with the XML node hierarchy specified by the given root node.

UTF8String om::xml::XMLDocument::toString ( ) const

Convert this XML document to a valid XML document string.


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