]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/apachemods/xmltools.h
c09f3cfb88324ac75f58f43117f8028e78f51c09
[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
15 #ifndef XMLTOOLS_H
16 #define XMLTOOLS_H
17
18
19 /* turns a doc into a string.  string must be deallocated.
20         if 'full', then the entire doc is stringified, otherwise
21         the root node (on down) is stringified */
22 char* xmlDocToString(xmlDocPtr doc, int full);
23
24 int xmlReplaceDtd(xmlDocPtr doc, char* dtdfile);
25
26 /* Inline DTD Entity replacement.
27         creates a new doc with the entities replaced, frees the
28         doc provided and returns a new one.  
29         Do this and you'll be OK:
30                 doc = xmlProcessDtdEntities(doc);
31                 */
32 xmlDocPtr xmlProcessDtdEntities(xmlDocPtr doc);
33
34
35 #endif
36
37