IXMLHandler Class Referenceabstract

This class is design to help about XML manipulation. More...

Public Member Functions

virtual void release (void)=0
 Release the handler.
 
virtual XML::IXMLNodeparseFile (const char *sPath)=0
 Parse file points by sPath and return the root name of the document. More...
 
virtual XML::IXMLNodeparseString (const char *sString, const uint32 &uiSize)=0
 Parse the string sString on uiSize caracters and return the root name of the document. More...
 
virtual XML::boolean writeXMLInFile (const IXMLNode &rNode, const char *sPath) const =0
 Write the XML corresponding to the node rNode in the file points by sPath. If the file exists it will be erase. More...
 

Detailed Description

This class is design to help about XML manipulation.

Author
Serrière Guillaume (INRIA/Loria)
See Also
XML

Member Function Documentation

virtual XML::IXMLNode* parseFile ( const char *  sPath)
pure virtual

Parse file points by sPath and return the root name of the document.

Parameters
sPath[in] : Path to the File
Returns
The root node of the document, or NULL if there is an error.
virtual XML::IXMLNode* parseString ( const char *  sString,
const uint32 &  uiSize 
)
pure virtual

Parse the string sString on uiSize caracters and return the root name of the document.

Parameters
sString[in] : String which contains the XML
uiSize[in] : Size of the part to analyze
Returns
The root node of the parse part, or NULL if there is an error.
virtual XML::boolean writeXMLInFile ( const IXMLNode rNode,
const char *  sPath 
) const
pure virtual

Write the XML corresponding to the node rNode in the file points by sPath. If the file exists it will be erase.

Parameters
rNode[in] : The node to write.
sPath[in] : The path to the file.
Returns
True on success, false otherwise.