tmw/src/utils/xml.h File Reference

#include <libxml/tree.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  XML

Classes

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

Defines

#define for_each_xml_child_node(var, parent)   for (xmlNodePtr var = parent->xmlChildrenNode; var; var = var->next)

Functions

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


Define Documentation

#define for_each_xml_child_node ( var,
parent   )     for (xmlNodePtr var = parent->xmlChildrenNode; var; var = var->next)

Definition at line 93 of file xml.h.


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