]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/osrf_json_xml.h
Several bug fixes:
[OpenSRF.git] / include / opensrf / osrf_json_xml.h
1 #ifndef OSRF_JSON_XML_H
2 #define OSRF_JSON_XML_H
3
4 #ifdef OSRF_JSON_ENABLE_XML_UTILS
5
6 #include <stdio.h>
7 #include <string.h>
8 #include <libxml/globals.h>
9 #include <libxml/xmlerror.h>
10 #include <libxml/parser.h>
11 #include <libxml/tree.h>
12 #include <libxml/xmlmemory.h>
13
14 #include <opensrf/osrf_json.h>
15 #include <opensrf/utils.h>
16 #include <opensrf/osrf_list.h>
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 /**
23  *      Generates an XML representation of a JSON object */
24 char* jsonObjectToXML( const jsonObject*);
25
26
27 /*
28  * Builds a JSON object from the provided XML 
29  */
30 jsonObject* jsonXMLToJSONObject(const char* xml);
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif
37 #endif