1 * Summary: Tree debugging APIs
2 * Description: Interfaces to a set of routines used for debugging the tree
3 * produced by the XML parser.
5 * Copy: See Copyright for the status of this software.
7 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
9 /if not defined(DEBUG_XML__)
12 /include "libxmlrpg/xmlversion"
13 /include "libxmlrpg/tree"
15 /if defined(LIBXML_DEBUG_ENABLED)
17 /include "libxmlrpg/xpath"
19 * The standard Dump routines.
21 d xmlDebugDumpString...
22 d pr extproc('xmlDebugDumpString')
23 d output * value FILE *
24 d str * value options(*string) const xmlChar *
27 d pr extproc('xmlDebugDumpAttr')
28 d output * value FILE *
29 d attr value like(xmlAttrPtr)
32 d xmlDebugDumpAttrList...
33 d pr extproc('xmlDebugDumpAttrList')
34 d output * value FILE *
35 d attr value like(xmlAttrPtr)
38 d xmlDebugDumpOneNode...
39 d pr extproc('xmlDebugDumpOneNode')
40 d output * value FILE *
41 d node value like(xmlNodePtr)
45 d pr extproc('xmlDebugDumpNode')
46 d output * value FILE *
47 d node value like(xmlNodePtr)
50 d xmlDebugDumpNodeList...
51 d pr extproc('xmlDebugDumpNodeList')
52 d output * value FILE *
53 d node value like(xmlNodePtr)
56 d xmlDebugDumpDocumentHead...
57 d pr extproc('xmlDebugDumpDocumentHead')
58 d output * value FILE *
59 d doc value like(xmlDocPtr)
61 d xmlDebugDumpDocument...
62 d pr extproc('xmlDebugDumpDocument')
63 d output * value FILE *
64 d doc value like(xmlDocPtr)
67 d pr extproc('xmlDebugDumpDTD')
68 d output * value FILE *
69 d dtd value like(xmlDtdPtr)
71 d xmlDebugDumpEntities...
72 d pr extproc('xmlDebugDumpEntities')
73 d output * value FILE *
74 d doc value like(xmlDocPtr)
76 ****************************************************************
80 ****************************************************************
82 d xmlDebugCheckDocument...
83 d pr 10i 0 extproc('xmlDebugCheckDocument')
84 d output * value FILE *
85 d doc value like(xmlDocPtr)
87 ****************************************************************
91 ****************************************************************
93 d xmlLsOneNode pr extproc('xmlLsOneNode')
94 d output * value FILE *
95 d node value like(xmlNodePtr)
97 d xmlLsCountNode pr 10i 0 extproc('xmlLsCountNode')
98 d node value like(xmlNodePtr)
100 d xmlBoolToText pr * extproc('xmlBoolToText') const char *
101 d boolval 10i 0 value
103 ****************************************************************
105 * The XML shell related structures and functions *
107 ****************************************************************
109 /if defined(LIBXML_XPATH_ENABLED)
111 * xmlShellReadlineFunc:
112 * @prompt: a string prompt
114 * This is a generic signature for the XML shell input function.
116 * Returns a string which will be freed by the Shell.
118 d xmlShellReadlineFunc...
119 d s * based(######typedef######)
124 * A debugging shell context.
125 * TODO: add the defined function tables.
128 d s * based(######typedef######)
130 d xmlSchellCtxt ds based(xmlShellCtxtPtr)
133 d doc like(xmlDocPtr)
134 d node like(xmlNodePtr)
135 d pctxt like(xmlXPathContextPtr)
138 d input like(xmlShellReadlineFunc)
141 * @ctxt: a shell context
142 * @arg: a string argument
143 * @node: a first node
144 * @node2: a second node
146 * This is a generic signature for the XML shell functions.
148 * Returns an int, negative returns indicating errors.
150 d xmlShellCmd s * based(######typedef######)
153 d xmlShellPrintXPathError...
154 d pr extproc('xmlShellPrintXPathError')
155 d errorType 10i 0 value
156 d arg * value options(*string) const char *
158 d xmlShellPrintXPathResult...
159 d pr extproc('xmlShellPrintXPathResult')
160 d list value like(xmlXPathObjectPtr)
162 d xmlShellList pr 10i 0 extproc('xmlShellList')
163 d ctxt value like(xmlShellCtxtPtr)
164 d arg * value options(*string) char *
165 d node value like(xmlNodePtr)
166 d node2 value like(xmlNodePtr)
168 d xmlShellBase pr 10i 0 extproc('xmlShellBase')
169 d ctxt value like(xmlShellCtxtPtr)
170 d arg * value options(*string) char *
171 d node value like(xmlNodePtr)
172 d node2 value like(xmlNodePtr)
174 d xmlShellDir pr 10i 0 extproc('xmlShellDir')
175 d ctxt value like(xmlShellCtxtPtr)
176 d arg * value options(*string) char *
177 d node value like(xmlNodePtr)
178 d node2 value like(xmlNodePtr)
180 d xmlShellLoad pr 10i 0 extproc('xmlShellLoad')
181 d ctxt value like(xmlShellCtxtPtr)
182 d filename * value options(*string) char *
183 d node value like(xmlNodePtr)
184 d node2 value like(xmlNodePtr)
186 /if defined(LIBXML_OUTPUT_ENABLED)
187 d xmlShellPrintNode...
188 d pr extproc('xmlShellPrintNode')
189 d node value like(xmlNodePtr)
191 d xmlShellCat pr 10i 0 extproc('xmlShellCat')
192 d ctxt value like(xmlShellCtxtPtr)
193 d arg * value options(*string) char *
194 d node value like(xmlNodePtr)
195 d node2 value like(xmlNodePtr)
197 d xmlShellWrite pr 10i 0 extproc('xmlShellWrite')
198 d ctxt value like(xmlShellCtxtPtr)
199 d filename * value options(*string) char *
200 d node value like(xmlNodePtr)
201 d node2 value like(xmlNodePtr)
203 d xmlShellSave pr 10i 0 extproc('xmlShellSave')
204 d ctxt value like(xmlShellCtxtPtr)
205 d filename * value options(*string) char *
206 d node value like(xmlNodePtr)
207 d node2 value like(xmlNodePtr)
208 /endif LIBXML_OUTPUT_ENABLD
210 /if defined(LIBXML_VALID_ENABLED)
211 d xmlShellValidate...
212 d pr 10i 0 extproc('xmlShellValidate')
213 d ctxt value like(xmlShellCtxtPtr)
214 d dtd * value options(*string) char *
215 d node value like(xmlNodePtr)
216 d node2 value like(xmlNodePtr)
217 /endif LIBXML_VALID_ENABLED
219 d xmlShellDu pr 10i 0 extproc('xmlShellDu')
220 d ctxt value like(xmlShellCtxtPtr)
221 d arg * value options(*string) char *
222 d tree value like(xmlNodePtr)
223 d node2 value like(xmlNodePtr)
225 d xmlShellPwd pr 10i 0 extproc('xmlShellPwd')
226 d ctxt value like(xmlShellCtxtPtr)
227 d buffer * value options(*string) char *
228 d node value like(xmlNodePtr)
229 d node2 value like(xmlNodePtr)
231 * The Shell interface.
233 d xmlShell pr extproc('xmlShell')
234 d doc value like(xmlDocPtr)
235 d filename * value options(*string) char *
236 d input value like(xmlShellReadlineFunc)
237 d output * value FILE *
239 /endif LIBXML_XPATH_ENABLED
240 /endif LIBXML_DEBUG_ENABLED