summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-04-23 00:48:37 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-04-23 00:48:37 +0000
commitb3376bfe4e26591e1dc1066d8f2270baf4f9f759 (patch)
tree6cba270a59320bf7c77266fe736cfb68bc2521a0 /src/utils
parent6d09c8f4667f75fece4a5549de237e17490398cf (diff)
downloadmana-client-b3376bfe4e26591e1dc1066d8f2270baf4f9f759.tar.gz
mana-client-b3376bfe4e26591e1dc1066d8f2270baf4f9f759.tar.bz2
mana-client-b3376bfe4e26591e1dc1066d8f2270baf4f9f759.tar.xz
mana-client-b3376bfe4e26591e1dc1066d8f2270baf4f9f759.zip
Merged Björn Steinbrinks improvements at the xml parsing from trunk version.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/xml.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/xml.h b/src/utils/xml.h
index 54ed9951..db4c264a 100644
--- a/src/utils/xml.h
+++ b/src/utils/xml.h
@@ -28,6 +28,9 @@
#include <string>
+/**
+ * XML helper functions.
+ */
namespace XML
{
/**
@@ -43,4 +46,7 @@ namespace XML
getProperty(xmlNodePtr node, const char *name, const std::string &def);
}
+#define for_each_xml_child_node(var, parent) \
+ for (xmlNodePtr var = parent->xmlChildrenNode; var; var = var->next)
+
#endif