14 #include <libxml/xmlversion.h>
15 #include <libxml/tree.h>
17 #ifdef LIBXML_DEBUG_ENABLED
19 #include <libxml/xpath.h>
28 XMLPUBFUN
void XMLCALL
29 xmlDebugDumpString (FILE *output,
31 XMLPUBFUN
void XMLCALL
32 xmlDebugDumpAttr (FILE *output,
35 XMLPUBFUN
void XMLCALL
36 xmlDebugDumpAttrList (FILE *output,
39 XMLPUBFUN
void XMLCALL
40 xmlDebugDumpOneNode (FILE *output,
43 XMLPUBFUN
void XMLCALL
44 xmlDebugDumpNode (FILE *output,
47 XMLPUBFUN
void XMLCALL
48 xmlDebugDumpNodeList (FILE *output,
51 XMLPUBFUN
void XMLCALL
52 xmlDebugDumpDocumentHead(FILE *output,
54 XMLPUBFUN
void XMLCALL
55 xmlDebugDumpDocument (FILE *output,
57 XMLPUBFUN
void XMLCALL
58 xmlDebugDumpDTD (FILE *output,
60 XMLPUBFUN
void XMLCALL
61 xmlDebugDumpEntities (FILE *output,
71 xmlDebugCheckDocument (FILE * output,
80 XMLPUBFUN
void XMLCALL
81 xmlLsOneNode (FILE *output, xmlNodePtr node);
83 xmlLsCountNode (xmlNodePtr node);
85 XMLPUBFUN
const char * XMLCALL
86 xmlBoolToText (
int boolval);
94 #ifdef LIBXML_XPATH_ENABLED
103 typedef char * (* xmlShellReadlineFunc)(
char *prompt);
111 typedef struct _xmlShellCtxt xmlShellCtxt;
112 typedef xmlShellCtxt *xmlShellCtxtPtr;
113 struct _xmlShellCtxt {
117 xmlXPathContextPtr pctxt;
120 xmlShellReadlineFunc input;
134 typedef int (* xmlShellCmd) (xmlShellCtxtPtr ctxt,
139 XMLPUBFUN
void XMLCALL
140 xmlShellPrintXPathError (
int errorType,
142 XMLPUBFUN
void XMLCALL
143 xmlShellPrintXPathResult(xmlXPathObjectPtr list);
144 XMLPUBFUN
int XMLCALL
145 xmlShellList (xmlShellCtxtPtr ctxt,
149 XMLPUBFUN
int XMLCALL
150 xmlShellBase (xmlShellCtxtPtr ctxt,
154 XMLPUBFUN
int XMLCALL
155 xmlShellDir (xmlShellCtxtPtr ctxt,
159 XMLPUBFUN
int XMLCALL
160 xmlShellLoad (xmlShellCtxtPtr ctxt,
164 #ifdef LIBXML_OUTPUT_ENABLED
165 XMLPUBFUN
void XMLCALL
166 xmlShellPrintNode (xmlNodePtr node);
167 XMLPUBFUN
int XMLCALL
168 xmlShellCat (xmlShellCtxtPtr ctxt,
172 XMLPUBFUN
int XMLCALL
173 xmlShellWrite (xmlShellCtxtPtr ctxt,
177 XMLPUBFUN
int XMLCALL
178 xmlShellSave (xmlShellCtxtPtr ctxt,
183 #ifdef LIBXML_VALID_ENABLED
184 XMLPUBFUN
int XMLCALL
185 xmlShellValidate (xmlShellCtxtPtr ctxt,
190 XMLPUBFUN
int XMLCALL
191 xmlShellDu (xmlShellCtxtPtr ctxt,
195 XMLPUBFUN
int XMLCALL
196 xmlShellPwd (xmlShellCtxtPtr ctxt,
204 XMLPUBFUN
void XMLCALL
205 xmlShell (xmlDocPtr doc,
207 xmlShellReadlineFunc input,