From 033bd9e5008120546f8d6c973376e848f7a67f00 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 29 May 2009 18:00:13 +0200 Subject: Added a simple helper macro to simplify xmlNode traversing --- src/dmixml.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dmixml.h b/src/dmixml.h index b1ca6d9..f394137 100644 --- a/src/dmixml.h +++ b/src/dmixml.h @@ -30,6 +30,8 @@ #include #include +#define foreach_xmlnode(n, itn) for( itn = n; itn != NULL; itn = itn->next ) + xmlAttr *dmixml_AddAttribute(xmlNode *node, const char *atrname, const char *fmt, ...); xmlNode *dmixml_AddTextChild(xmlNode *node, const char *tagname, const char *fmt, ...); xmlNode *dmixml_AddTextContent(xmlNode *node, const char *fmt, ...); -- cgit