]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/apachemods/xmltools.h
OpenILS apache xml processing stuff, other mods can go in this dir as well
[working/Evergreen.git] / Open-ILS / src / apachemods / xmltools.h
1
2 /* general headers */
3 #include <stdio.h>
4 #include <string.h>
5 #include <strings.h>
6
7 /* libxml2 headers */
8 #include <libxml/parser.h>
9 #include <libxml/globals.h>
10 #include <libxml/xinclude.h>
11 #include <libxml/xmlwriter.h>
12 #include <libxml/xmlreader.h>
13
14 #include "apachetools.h"
15
16
17 #ifndef XMLTOOLS_H
18 #define XMLTOOLS_H
19
20
21 /* turns a doc into a string.  string must be deallocated.
22         if 'full', then the entire doc is stringified, otherwise
23         the root node (on down) is stringified */
24 char* xmlDocToString(xmlDocPtr doc, int full);
25
26 int xmlReplaceDtd(xmlDocPtr doc, char* dtdfile);
27
28 /* Inline DTD Entity replacement.
29         creates a new doc with the entities replaced, frees the
30         doc provided and returns a new one.  
31         Do this and you'll be OK:
32                 doc = xmlProcessDtdEntities(doc);
33                 */
34 xmlDocPtr xmlProcessDtdEntities(xmlDocPtr doc);
35
36
37 #endif
38
39