From 58619e09c5d554e66cad768a9abd6b2fff7f5a62 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 17 Dec 2008 09:42:46 +0100 Subject: Added common eurephiaXML functions for creating and reading eurephia XML documents --- common/eurephia_xml.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/eurephia_xml.h') diff --git a/common/eurephia_xml.h b/common/eurephia_xml.h index 761ffda..f03be27 100644 --- a/common/eurephia_xml.h +++ b/common/eurephia_xml.h @@ -27,6 +27,9 @@ char *xmlGetAttrValue(xmlAttr *properties, const char *key); xmlNode *xmlFindNode(xmlNode *node, const char *key); +int eurephiaXML_CreateDoc(eurephiaCTX *ctx, int format, const char *rootname, xmlDoc **doc, xmlNode **root_n); +xmlNode *eurephiaXML_getRoot(eurephiaCTX *ctx, xmlDoc *doc, const char *nodeset, int min_format); + inline char *xmlExtractContent(xmlNode *n) { return (char *) (((n != NULL) && (n->children != NULL)) ? n->children->content : NULL); } -- cgit