diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-06-04 21:48:47 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-06-04 21:48:47 +0000 |
commit | a353543dd4da3c489a84f6f17125fdd0e1be2349 (patch) | |
tree | 5e447a0f9a3fd50f58a48f39bbb77d392d78af36 /src/utils/xml.h | |
parent | ab072dddb231895ba7b6762eda9fa70af961b0fb (diff) | |
download | mana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.gz mana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.bz2 mana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.xz mana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.zip |
Merged 0.0 changes from revision 3234 to 3317 to trunk.
Diffstat (limited to 'src/utils/xml.h')
-rw-r--r-- | src/utils/xml.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils/xml.h b/src/utils/xml.h index db4c264a..ef3bad3d 100644 --- a/src/utils/xml.h +++ b/src/utils/xml.h @@ -40,10 +40,21 @@ namespace XML getProperty(xmlNodePtr node, const char *name, int def); /** + * Gets an floating point property from an xmlNodePtr. + */ + double + getFloatProperty(xmlNodePtr node, const char *name, double def); + + /** * Gets a string property from an xmlNodePtr. */ std::string getProperty(xmlNodePtr node, const char *name, const std::string &def); + + /** + * Finds the first child node with the given name + */ + xmlNodePtr findFirstChildByName(xmlNodePtr parent, const char *name); } #define for_each_xml_child_node(var, parent) \ |