]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/xml_utils.h
Eliminated four dead functions that are never called
[OpenSRF.git] / include / opensrf / xml_utils.h
1 #ifndef _XML_UTILS_H
2 #define _XML_UTILS_H
3
4 #include <opensrf/osrf_json.h>
5 #include <libxml/parser.h>
6 #include <libxml/tree.h>
7
8 jsonObject* xmlDocToJSON(xmlDocPtr doc);
9
10 /* debug function, prints each node and content */
11 void recurse_doc( xmlNodePtr node );
12
13
14 /* turns an XML doc into a char*.  
15         User is responsible for freeing the returned char*
16         if(full), then we return the whole doc (xml declaration, etc.)
17         else we return the doc from the root node down
18         */
19 char* xmlDocToString(xmlDocPtr doc, int full);
20
21
22 /* Takes an xmlChar** from a SAX callback and returns the value
23         for the attribute with name 'name'
24         */
25 char* xmlSaxAttr( const xmlChar** atts, const char* name ); 
26
27 /**
28   Sets the xml attributes from atts to the given dom node 
29  */
30 int xmlAddAttrs( xmlNodePtr node, const xmlChar** atts );
31
32
33 #endif