diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-17 09:42:46 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-17 09:42:46 +0100 |
commit | 58619e09c5d554e66cad768a9abd6b2fff7f5a62 (patch) | |
tree | f1a81cd0ba1b5b5c526401c9ce34c93beab8b53f /common/eurephia_xml.h | |
parent | b895198722a226d19bf078cabfd5395db4940021 (diff) | |
download | eurephia-58619e09c5d554e66cad768a9abd6b2fff7f5a62.tar.gz eurephia-58619e09c5d554e66cad768a9abd6b2fff7f5a62.tar.xz eurephia-58619e09c5d554e66cad768a9abd6b2fff7f5a62.zip |
Added common eurephiaXML functions for creating and reading eurephia XML documents
Diffstat (limited to 'common/eurephia_xml.h')
-rw-r--r-- | common/eurephia_xml.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |