XML Namespace Reference


Detailed Description

XML helper functions.


Classes

class  Document
 A helper class for parsing an XML document, which also cleans it up again (RAII). More...

Functions

int getProperty (xmlNodePtr node, const char *name, int def)
 Gets an integer property from an xmlNodePtr.
double getFloatProperty (xmlNodePtr node, const char *name, double def)
 Gets an floating point property from an xmlNodePtr.
std::string getProperty (xmlNodePtr node, const char *name, const std::string &def)
 Gets a string property from an xmlNodePtr.
xmlNodePtr findFirstChildByName (xmlNodePtr parent, const char *name)
 Finds the first child node with the given name.


Function Documentation

xmlNodePtr XML::findFirstChildByName ( xmlNodePtr  parent,
const char *  name 
)

Finds the first child node with the given name.

Definition at line 103 of file xml.cpp.

double XML::getFloatProperty ( xmlNodePtr  node,
const char *  name,
double  def 
)

Gets an floating point property from an xmlNodePtr.

Definition at line 77 of file xml.cpp.

std::string XML::getProperty ( xmlNodePtr  node,
const char *  name,
const std::string &  def 
)

Gets a string property from an xmlNodePtr.

Definition at line 90 of file xml.cpp.

int XML::getProperty ( xmlNodePtr  node,
const char *  name,
int  def 
)

Gets an integer property from an xmlNodePtr.

Definition at line 64 of file xml.cpp.


Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5