Main Page | Modules | Class Hierarchy | Class List | Class Members

MXMLDocument Class Reference
[Micro XML Document Object Model]

#include <mxmldom.h>

List of all members.


Detailed Description

XML Document.

MXMLDocument is used to load and save XML documents into a MXMLElement tree.


Public Member Functions

bool Load (MXMLStream &a_stream, size_t a_bufferSize=4096)
 Load an xml document.
bool Save (MXMLStream &a_stream) const
 Save an xml document.
MXMLElementGetDocumentElement ()
 Get the document level element, should have 1 root element and possible declarations.


Member Function Documentation

bool MXMLDocument::Load MXMLStream a_stream,
size_t  a_bufferSize = 4096
 

Load an xml document.

Parameters:
a_stream is a MXMLStream derived object ready for reading
a_bufferSize is used with MXMLParserParse to load the document
Returns:
true on success, otherwise false and the document buffer has the error message

bool MXMLDocument::Save MXMLStream a_stream  )  const
 

Save an xml document.

Parameters:
a_stream is a MXMLStream derived object ready for writing
Returns:
true on success


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