]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/xml_utils.h
1. Make osrfMessageToJSON() available at global scope.
[OpenSRF.git] / include / opensrf / xml_utils.h
1 #ifndef XML_UTILS_H
2 #define XML_UTILS_H
3
4 /**
5         @file xml_utils.h
6         @brief Utility routines for XML documents.
7 */
8
9 #include <opensrf/osrf_json.h>
10 #include <libxml/parser.h>
11 #include <libxml/tree.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 jsonObject* xmlDocToJSON(xmlDocPtr doc);
18
19 void recurse_doc( xmlNodePtr node );
20
21 char* xmlDocToString(xmlDocPtr doc, int full);
22
23 const char* xmlSaxAttr( const xmlChar** atts, const char* name ); 
24
25 int xmlAddAttrs( xmlNodePtr node, const xmlChar** atts );
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif