William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>debugXML</title><meta name="generator" content="DocBook XSL Stylesheets V1.60.1"><meta xmlns="http://www.w3.org/TR/xhtml1/transitional" name="generator" content="GTK-Doc V1.0 (XML mode)"></meta><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css"> |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 2 | .synopsis, .classsynopsis { |
| 3 | background: #eeeeee; |
| 4 | border: solid 1px #aaaaaa; |
| 5 | padding: 0.5em; |
| 6 | } |
| 7 | .programlisting { |
| 8 | background: #eeeeff; |
| 9 | border: solid 1px #aaaaff; |
| 10 | padding: 0.5em; |
| 11 | } |
| 12 | .variablelist { |
| 13 | padding: 4px; |
| 14 | margin-left: 3em; |
| 15 | } |
| 16 | .navigation { |
| 17 | background: #ffeeee; |
| 18 | border: solid 1px #ffaaaa; |
| 19 | margin-top: 0.5em; |
| 20 | margin-bottom: 0.5em; |
| 21 | } |
| 22 | .navigation a { |
| 23 | color: #770000; |
| 24 | } |
| 25 | .navigation a:visited { |
| 26 | color: #550000; |
| 27 | } |
| 28 | .navigation .title { |
| 29 | font-size: 200%; |
| 30 | } |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 31 | </style><link rel="home" href="index.html" title="[Insert name here] Reference Manual"><link rel="up" href="ch01.html" title="[Insert title here]"><link rel="previous" href="libxml-xmlreader.html" title="xmlreader"><link rel="next" href="libxml-xmlschemas.html" title="xmlschemas"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-xmlreader.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">[Insert name here] Reference Manual</th><td><a accesskey="n" href="libxml-xmlschemas.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-debugXML"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">debugXML</span></h2><p>debugXML — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis"> |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 32 | |
| 33 | |
| 34 | |
| 35 | void <a href="libxml-debugXML.html#xmlDebugDumpString">xmlDebugDumpString</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 36 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str); |
| 37 | void <a href="libxml-debugXML.html#xmlDebugDumpAttr">xmlDebugDumpAttr</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 38 | <a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, |
| 39 | int depth); |
| 40 | void <a href="libxml-debugXML.html#xmlDebugDumpAttrList">xmlDebugDumpAttrList</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 41 | <a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, |
| 42 | int depth); |
| 43 | void <a href="libxml-debugXML.html#xmlDebugDumpOneNode">xmlDebugDumpOneNode</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 44 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 45 | int depth); |
| 46 | void <a href="libxml-debugXML.html#xmlDebugDumpNode">xmlDebugDumpNode</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 47 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 48 | int depth); |
| 49 | void <a href="libxml-debugXML.html#xmlDebugDumpNodeList">xmlDebugDumpNodeList</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 50 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 51 | int depth); |
| 52 | void <a href="libxml-debugXML.html#xmlDebugDumpDocumentHead">xmlDebugDumpDocumentHead</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 53 | <a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc); |
| 54 | void <a href="libxml-debugXML.html#xmlDebugDumpDocument">xmlDebugDumpDocument</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 55 | <a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc); |
| 56 | void <a href="libxml-debugXML.html#xmlDebugDumpDTD">xmlDebugDumpDTD</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 57 | <a href="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd); |
| 58 | void <a href="libxml-debugXML.html#xmlDebugDumpEntities">xmlDebugDumpEntities</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 59 | <a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc); |
| 60 | void <a href="libxml-debugXML.html#xmlLsOneNode">xmlLsOneNode</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 61 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 62 | int <a href="libxml-debugXML.html#xmlLsCountNode">xmlLsCountNode</a> (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 63 | char* (<a href="libxml-debugXML.html#xmlShellReadlineFunc">*xmlShellReadlineFunc</a>) (char *prompt); |
| 64 | struct <a href="libxml-debugXML.html#xmlShellCtxt">xmlShellCtxt</a>; |
| 65 | typedef <a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a>; |
| 66 | int (<a href="libxml-debugXML.html#xmlShellCmd">*xmlShellCmd</a>) (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 67 | char *arg, |
| 68 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 69 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 70 | void <a href="libxml-debugXML.html#xmlShellPrintXPathError">xmlShellPrintXPathError</a> (int errorType, |
| 71 | const char *arg); |
| 72 | void <a href="libxml-debugXML.html#xmlShellPrintNode">xmlShellPrintNode</a> (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 73 | void <a href="libxml-debugXML.html#xmlShellPrintXPathResult">xmlShellPrintXPathResult</a> (<a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> list); |
| 74 | int <a href="libxml-debugXML.html#xmlShellList">xmlShellList</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 75 | char *arg, |
| 76 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 77 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 78 | int <a href="libxml-debugXML.html#xmlShellBase">xmlShellBase</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 79 | char *arg, |
| 80 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 81 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 82 | int <a href="libxml-debugXML.html#xmlShellDir">xmlShellDir</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 83 | char *arg, |
| 84 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 85 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 86 | int <a href="libxml-debugXML.html#xmlShellCat">xmlShellCat</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 87 | char *arg, |
| 88 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 89 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 90 | int <a href="libxml-debugXML.html#xmlShellLoad">xmlShellLoad</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 91 | char *filename, |
| 92 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 93 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 94 | int <a href="libxml-debugXML.html#xmlShellWrite">xmlShellWrite</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 95 | char *filename, |
| 96 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 97 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 98 | int <a href="libxml-debugXML.html#xmlShellSave">xmlShellSave</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 99 | char *filename, |
| 100 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 101 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 102 | int <a href="libxml-debugXML.html#xmlShellValidate">xmlShellValidate</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 103 | char *dtd, |
| 104 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 105 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 106 | int <a href="libxml-debugXML.html#xmlShellDu">xmlShellDu</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 107 | char *arg, |
| 108 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> tree, |
| 109 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 110 | int <a href="libxml-debugXML.html#xmlShellPwd">xmlShellPwd</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 111 | char *buffer, |
| 112 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 113 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2); |
| 114 | void <a href="libxml-debugXML.html#xmlShell">xmlShell</a> (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, |
| 115 | char *filename, |
| 116 | <a href="libxml-debugXML.html#xmlShellReadlineFunc">xmlShellReadlineFunc</a> input, |
| 117 | <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output); |
| 118 | </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p> |
| 119 | |
| 120 | </p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpString"></a>xmlDebugDumpString ()</h3><pre class="programlisting">void xmlDebugDumpString (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 121 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str);</pre><p> |
| 122 | Dumps informations about the string, shorten it if necessary</p><p> |
| 123 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 124 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 125 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>str</tt></i> :</span></td><td> the string |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 126 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpAttr"></a>xmlDebugDumpAttr ()</h3><pre class="programlisting">void xmlDebugDumpAttr (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 127 | <a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, |
| 128 | int depth);</pre><p> |
| 129 | Dumps debug information for the attribute</p><p> |
| 130 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 131 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 132 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>attr</tt></i> :</span></td><td> the attribute |
| 133 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>depth</tt></i> :</span></td><td> the indentation level. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 134 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpAttrList"></a>xmlDebugDumpAttrList ()</h3><pre class="programlisting">void xmlDebugDumpAttrList (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 135 | <a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr, |
| 136 | int depth);</pre><p> |
| 137 | Dumps debug information for the attribute list</p><p> |
| 138 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 139 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 140 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>attr</tt></i> :</span></td><td> the attribute list |
| 141 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>depth</tt></i> :</span></td><td> the indentation level. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 142 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpOneNode"></a>xmlDebugDumpOneNode ()</h3><pre class="programlisting">void xmlDebugDumpOneNode (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 143 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 144 | int depth);</pre><p> |
| 145 | Dumps debug information for the element node, it is not recursive</p><p> |
| 146 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 147 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 148 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> the node |
| 149 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>depth</tt></i> :</span></td><td> the indentation level. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 150 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpNode"></a>xmlDebugDumpNode ()</h3><pre class="programlisting">void xmlDebugDumpNode (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 151 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 152 | int depth);</pre><p> |
| 153 | Dumps debug information for the element node, it is recursive</p><p> |
| 154 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 155 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 156 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> the node |
| 157 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>depth</tt></i> :</span></td><td> the indentation level. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 158 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpNodeList"></a>xmlDebugDumpNodeList ()</h3><pre class="programlisting">void xmlDebugDumpNodeList (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 159 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 160 | int depth);</pre><p> |
| 161 | Dumps debug information for the list of element node, it is recursive</p><p> |
| 162 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 163 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 164 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> the node list |
| 165 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>depth</tt></i> :</span></td><td> the indentation level. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 166 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDocumentHead"></a>xmlDebugDumpDocumentHead ()</h3><pre class="programlisting">void xmlDebugDumpDocumentHead (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 167 | <a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);</pre><p> |
| 168 | Dumps debug information cncerning the document, not recursive</p><p> |
| 169 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 170 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 171 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>doc</tt></i> :</span></td><td> the document |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 172 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDocument"></a>xmlDebugDumpDocument ()</h3><pre class="programlisting">void xmlDebugDumpDocument (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 173 | <a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);</pre><p> |
| 174 | Dumps debug information for the document, it's recursive</p><p> |
| 175 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 176 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 177 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>doc</tt></i> :</span></td><td> the document |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 178 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDTD"></a>xmlDebugDumpDTD ()</h3><pre class="programlisting">void xmlDebugDumpDTD (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 179 | <a href="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd);</pre><p> |
| 180 | Dumps debug information for the DTD</p><p> |
| 181 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 182 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 183 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>dtd</tt></i> :</span></td><td> the DTD |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 184 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpEntities"></a>xmlDebugDumpEntities ()</h3><pre class="programlisting">void xmlDebugDumpEntities (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 185 | <a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);</pre><p> |
| 186 | Dumps debug information for all the entities in use by the document</p><p> |
| 187 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 188 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 189 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>doc</tt></i> :</span></td><td> the document |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 190 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlLsOneNode"></a>xmlLsOneNode ()</h3><pre class="programlisting">void xmlLsOneNode (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 191 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 192 | Dump to <i class="parameter"><tt>output</tt></i> the type and name of <i class="parameter"><tt>node</tt></i>.</p><p> |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 193 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 194 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 195 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> the node to dump |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 196 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlLsCountNode"></a>xmlLsCountNode ()</h3><pre class="programlisting">int xmlLsCountNode (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 197 | Count the children of <i class="parameter"><tt>node</tt></i>.</p><p> |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 198 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 199 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> the node to count |
| 200 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of children of <i class="parameter"><tt>node</tt></i>. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 201 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellReadlineFunc"></a>xmlShellReadlineFunc ()</h3><pre class="programlisting">char* (*xmlShellReadlineFunc) (char *prompt);</pre><p> |
| 202 | This is a generic signature for the XML shell input function.</p><p> |
| 203 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 204 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>prompt</tt></i> :</span></td><td> a string prompt |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 205 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a string which will be freed by the Shell. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 206 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCtxt"></a>struct xmlShellCtxt</h3><pre class="programlisting">struct xmlShellCtxt { |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 207 | |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 208 | char *filename; |
| 209 | xmlDocPtr doc; |
| 210 | xmlNodePtr node; |
| 211 | xmlXPathContextPtr pctxt; |
| 212 | int loaded; |
| 213 | FILE *output; |
| 214 | xmlShellReadlineFunc input; |
| 215 | }; |
| 216 | </pre><p> |
| 217 | A debugging shell context. |
| 218 | TODO: add the defined function tables.</p><p> |
| 219 | |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 220 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCtxtPtr"></a>xmlShellCtxtPtr</h3><pre class="programlisting">typedef xmlShellCtxt *xmlShellCtxtPtr; |
| 221 | </pre><p> |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 222 | |
| 223 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCmd"></a>xmlShellCmd ()</h3><pre class="programlisting">int (*xmlShellCmd) (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 224 | char *arg, |
| 225 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 226 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
| 227 | This is a generic signature for the XML shell functions.</p><p> |
| 228 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 229 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> a shell context |
| 230 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>arg</tt></i> :</span></td><td> a string argument |
| 231 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a first node |
| 232 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> a second node |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 233 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>an int, negative returns indicating errors. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 234 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPrintXPathError"></a>xmlShellPrintXPathError ()</h3><pre class="programlisting">void xmlShellPrintXPathError (int errorType, |
| 235 | const char *arg);</pre><p> |
| 236 | Print the xpath error to libxml default error channel</p><p> |
| 237 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 238 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>errorType</tt></i> :</span></td><td> valid xpath error id |
| 239 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>arg</tt></i> :</span></td><td> the argument that cause xpath to fail |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 240 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPrintNode"></a>xmlShellPrintNode ()</h3><pre class="programlisting">void xmlShellPrintNode (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
| 241 | Print node to the output FILE</p><p> |
| 242 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 243 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a non-null node to print to the output FILE |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 244 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPrintXPathResult"></a>xmlShellPrintXPathResult ()</h3><pre class="programlisting">void xmlShellPrintXPathResult (<a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> list);</pre><p> |
| 245 | Prints result to the output FILE</p><p> |
| 246 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 247 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>list</tt></i> :</span></td><td> a valid result generated by an xpath evaluation |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 248 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellList"></a>xmlShellList ()</h3><pre class="programlisting">int xmlShellList (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 249 | char *arg, |
| 250 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 251 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 252 | Implements the XML shell function "ls" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 253 | Does an Unix like listing of the given node (like a directory)</p><p> |
| 254 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 255 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 256 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>arg</tt></i> :</span></td><td> unused |
| 257 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a node |
| 258 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 259 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 260 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellBase"></a>xmlShellBase ()</h3><pre class="programlisting">int xmlShellBase (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 261 | char *arg, |
| 262 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 263 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 264 | Implements the XML shell function "base" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 265 | dumps the current XML base of the node</p><p> |
| 266 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 267 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 268 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>arg</tt></i> :</span></td><td> unused |
| 269 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a node |
| 270 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 271 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 272 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellDir"></a>xmlShellDir ()</h3><pre class="programlisting">int xmlShellDir (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 273 | char *arg, |
| 274 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 275 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 276 | Implements the XML shell function "dir" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 277 | dumps informations about the node (namespace, attributes, content).</p><p> |
| 278 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 279 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 280 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>arg</tt></i> :</span></td><td> unused |
| 281 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a node |
| 282 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 283 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 284 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCat"></a>xmlShellCat ()</h3><pre class="programlisting">int xmlShellCat (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 285 | char *arg, |
| 286 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 287 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 288 | Implements the XML shell function "cat" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 289 | dumps the serialization node content (XML or HTML).</p><p> |
| 290 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 291 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 292 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>arg</tt></i> :</span></td><td> unused |
| 293 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a node |
| 294 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 295 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 296 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellLoad"></a>xmlShellLoad ()</h3><pre class="programlisting">int xmlShellLoad (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 297 | char *filename, |
| 298 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 299 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 300 | Implements the XML shell function "load" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 301 | loads a new document specified by the filename</p><p> |
| 302 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 303 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 304 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i> :</span></td><td> the file name |
| 305 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> unused |
| 306 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 307 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 if loading failed |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 308 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellWrite"></a>xmlShellWrite ()</h3><pre class="programlisting">int xmlShellWrite (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 309 | char *filename, |
| 310 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 311 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 312 | Implements the XML shell function "write" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 313 | Write the current node to the filename, it saves the serialization |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 314 | of the subtree under the <i class="parameter"><tt>node</tt></i> specified</p><p> |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 315 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 316 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 317 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i> :</span></td><td> the file name |
| 318 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a node in the tree |
| 319 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 320 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 321 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellSave"></a>xmlShellSave ()</h3><pre class="programlisting">int xmlShellSave (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 322 | char *filename, |
| 323 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 324 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 325 | Implements the XML shell function "save" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 326 | Write the current document to the filename, or it's original name</p><p> |
| 327 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 328 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 329 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i> :</span></td><td> the file name (optional) |
| 330 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> unused |
| 331 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 332 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 333 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellValidate"></a>xmlShellValidate ()</h3><pre class="programlisting">int xmlShellValidate (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 334 | char *dtd, |
| 335 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 336 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 337 | Implements the XML shell function "validate" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 338 | Validate the document, if a DTD path is provided, then the validation |
| 339 | is done against the given DTD.</p><p> |
| 340 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 341 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 342 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>dtd</tt></i> :</span></td><td> the DTD URI (optional) |
| 343 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> unused |
| 344 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 345 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 346 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellDu"></a>xmlShellDu ()</h3><pre class="programlisting">int xmlShellDu (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 347 | char *arg, |
| 348 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> tree, |
| 349 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 350 | Implements the XML shell function "du" |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 351 | show the structure of the subtree under node <i class="parameter"><tt>tree</tt></i> |
| 352 | If <i class="parameter"><tt>tree</tt></i> is null, the command works on the current node.</p><p> |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 353 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 354 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 355 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>arg</tt></i> :</span></td><td> unused |
| 356 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>tree</tt></i> :</span></td><td> a node defining a subtree |
| 357 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 358 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 359 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPwd"></a>xmlShellPwd ()</h3><pre class="programlisting">int xmlShellPwd (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt, |
| 360 | char *buffer, |
| 361 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 362 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p> |
Daniel Veillard | cfba2fe | 2003-08-15 00:33:43 +0000 | [diff] [blame] | 363 | Implements the XML shell function "pwd" |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 364 | Show the full path from the root to the node, if needed building |
| 365 | thumblers when similar elements exists at a given ancestor level. |
| 366 | The output is compatible with XPath commands.</p><p> |
| 367 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 368 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ctxt</tt></i> :</span></td><td> the shell context |
| 369 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>buffer</tt></i> :</span></td><td> the output buffer |
| 370 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node</tt></i> :</span></td><td> a node |
| 371 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>node2</tt></i> :</span></td><td> unused |
Daniel Veillard | d7cec92 | 2003-06-13 12:30:10 +0000 | [diff] [blame] | 372 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 373 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShell"></a>xmlShell ()</h3><pre class="programlisting">void xmlShell (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, |
| 374 | char *filename, |
| 375 | <a href="libxml-debugXML.html#xmlShellReadlineFunc">xmlShellReadlineFunc</a> input, |
| 376 | <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output);</pre><p> |
| 377 | Implements the XML shell |
| 378 | This allow to load, validate, view, modify and save a document |
| 379 | using a environment similar to a UNIX commandline.</p><p> |
| 380 | |
William M. Brack | c6e0755 | 2003-08-16 12:44:47 +0000 | [diff] [blame] | 381 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>doc</tt></i> :</span></td><td> the initial document |
| 382 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i> :</span></td><td> the output buffer |
| 383 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>input</tt></i> :</span></td><td> the line reading function |
| 384 | </td></tr><tr><td><span class="term"><i class="parameter"><tt>output</tt></i> :</span></td><td> the output FILE*, defaults to stdout if NULL |
| 385 | </td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-xmlreader.html"><b><< xmlreader</b></a></td><td align="right"><a accesskey="n" href="libxml-xmlschemas.html"><b>xmlschemas >></b></a></td></tr></table></body></html> |