examples.xml revision eca726dcd69a0974a1378149f234cbf3b47d42cd
1<examples>
2  <example filename='xpath1.c'>
3    <synopsis>Evaluate XPath expression and prints result node set.</synopsis>
4    <purpose>Shows how to evaluate XPath expression and register known namespaces in XPath context.</purpose>
5    <usage>xpath1 &lt;xml-file&gt; &lt;xpath-expr&gt; [&lt;known-ns-list&gt;]</usage>
6    <test>/xpath1 test3.xml &apos;//child2&apos; &gt; xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp</test>
7    <author>Aleksey Sanin</author>
8    <copy>see Copyright for the status of this software. </copy>
9    <section>XPath</section>
10    <includes>
11      <include>&lt;libxml/xpath.h&gt;</include>
12      <include>&lt;libxml/parser.h&gt;</include>
13      <include>&lt;libxml/xpathInternals.h&gt;</include>
14      <include>&lt;libxml/tree.h&gt;</include>
15    </includes>
16    <uses>
17      <enum line='229' file='tree' name='XML_ELEMENT_NODE'/>
18      <typedef line='88' file='xpath' name='xmlXPathObjectPtr'/>
19      <function line='54' file='xmlmemory' name='xmlMemoryDump'/>
20      <function line='117' file='xpath' name='xmlXPathEvalExpression'/>
21      <function line='186' file='xpathInternals' name='xmlXPathRegisterNs'/>
22      <function line='129' file='xpath' name='xmlXPathFreeObject'/>
23      <typedef line='86' file='tree' name='xmlDocPtr'/>
24      <typedef line='218' file='tree' name='xmlNsPtr'/>
25      <function line='101' file='xpath' name='xmlXPathNewContext'/>
26      <typedef line='206' file='tree' name='xmlNodePtr'/>
27      <function line='49' file='parser' name='xmlCleanupParser'/>
28      <macro line='43' file='xmlversion' name='LIBXML_TEST_VERSION'/>
29      <typedef line='87' file='xpath' name='xmlXPathContextPtr'/>
30      <function line='130' file='xpath' name='xmlXPathFreeContext'/>
31      <function line='39' file='parser' name='xmlInitParser'/>
32      <function line='156' file='xmlstring' name='xmlStrdup'/>
33      <function line='131' file='tree' name='xmlFreeDoc'/>
34      <function line='180' file='xmlstring' name='xmlStrchr'/>
35      <variable line='193' file='globals' name='xmlFree'/>
36      <function line='94' file='parser' name='xmlParseFile'/>
37      <enum line='217' file='tree' name='XML_NAMESPACE_DECL'/>
38    </uses>
39  </example>
40  <example filename='parse1.c'>
41    <synopsis>Parse an XML file to a tree and free it</synopsis>
42    <purpose>Demonstrate the use of xmlReadFile() to read an XML file into a tree and and xmlFreeDoc() to free the resulting tree</purpose>
43    <usage>parse1 test1.xml</usage>
44    <test>parse1 test1.xml</test>
45    <author>Daniel Veillard</author>
46    <copy>see Copyright for the status of this software. </copy>
47    <section>Parsing</section>
48    <includes>
49      <include>&lt;libxml/tree.h&gt;</include>
50      <include>&lt;libxml/parser.h&gt;</include>
51    </includes>
52    <uses>
53      <function line='50' file='parser' name='xmlCleanupParser'/>
54      <macro line='45' file='xmlversion' name='LIBXML_TEST_VERSION'/>
55      <typedef line='24' file='tree' name='xmlDocPtr'/>
56      <function line='31' file='tree' name='xmlFreeDoc'/>
57      <function line='26' file='parser' name='xmlReadFile'/>
58      <function line='54' file='xmlmemory' name='xmlMemoryDump'/>
59    </uses>
60  </example>
61  <example filename='parse2.c'>
62    <synopsis>Parse and validate an XML file to a tree and free the result</synopsis>
63    <purpose>Create a parser context for an XML file, then parse and validate the file, creating a tree, check the validation result and xmlFreeDoc() to free the resulting tree.</purpose>
64    <usage>parse2 test2.xml</usage>
65    <test>parse2 test2.xml</test>
66    <author>Daniel Veillard</author>
67    <copy>see Copyright for the status of this software. </copy>
68    <section>Parsing</section>
69    <includes>
70      <include>&lt;libxml/tree.h&gt;</include>
71      <include>&lt;libxml/parser.h&gt;</include>
72    </includes>
73    <uses>
74      <function line='47' file='parser' name='xmlFreeParserCtxt'/>
75      <macro line='61' file='xmlversion' name='LIBXML_TEST_VERSION'/>
76      <enum line='35' file='parser' name='XML_PARSE_DTDVALID'/>
77      <function line='29' file='parser' name='xmlNewParserCtxt'/>
78      <function line='66' file='parser' name='xmlCleanupParser'/>
79      <typedef line='25' file='tree' name='xmlParserCtxtPtr'/>
80      <function line='35' file='parser' name='xmlCtxtReadFile'/>
81      <function line='44' file='tree' name='xmlFreeDoc'/>
82      <typedef line='26' file='tree' name='xmlDocPtr'/>
83      <function line='70' file='xmlmemory' name='xmlMemoryDump'/>
84    </uses>
85  </example>
86  <example filename='tree1.c'>
87    <synopsis>Navigates a tree to print element names</synopsis>
88    <purpose>Parse a file to a tree, use xmlDocGetRootElement() to get the root element, then walk the document and print all the element name in document order.</purpose>
89    <usage>tree1 filename_or_URL</usage>
90    <test>tree1 test2.xml &gt; tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp</test>
91    <author>Dodji Seketeli</author>
92    <copy>see Copyright for the status of this software. </copy>
93    <section>Tree</section>
94    <includes>
95      <include>&lt;libxml/tree.h&gt;</include>
96      <include>&lt;libxml/parser.h&gt;</include>
97    </includes>
98    <uses>
99      <function line='85' file='parser' name='xmlCleanupParser'/>
100      <macro line='67' file='xmlversion' name='LIBXML_TEST_VERSION'/>
101      <enum line='36' file='tree' name='XML_ELEMENT_NODE'/>
102      <function line='79' file='tree' name='xmlFreeDoc'/>
103      <function line='67' file='parser' name='xmlParseFile'/>
104      <function line='74' file='tree' name='xmlDocGetRootElement'/>
105    </uses>
106  </example>
107  <example filename='tree2.c'>
108    <synopsis>Creates a tree</synopsis>
109    <purpose>Shows how to create document, nodes and dump it to stdout or file.</purpose>
110    <usage>tree2 &lt;filename&gt;  -Default output: stdout</usage>
111    <test>tree2 &gt; tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp</test>
112    <author>Lucas Brasilino &lt;brasilino@recife.pe.gov.br&gt;</author>
113    <copy>see Copyright for the status of this software </copy>
114    <section>Tree</section>
115    <includes>
116      <include>&lt;libxml/tree.h&gt;</include>
117      <include>&lt;libxml/parser.h&gt;</include>
118    </includes>
119    <uses>
120      <function line='75' file='tree' name='xmlNewText'/>
121      <function line='110' file='xmlmemory' name='xmlMemoryDump'/>
122      <function line='96' file='tree' name='xmlSaveFormatFileEnc'/>
123      <function line='78' file='tree' name='xmlAddChild'/>
124      <function line='41' file='tree' name='xmlDocSetRootElement'/>
125      <function line='105' file='parser' name='xmlCleanupParser'/>
126      <macro line='34' file='xmlversion' name='LIBXML_TEST_VERSION'/>
127      <function line='89' file='tree' name='xmlNewProp'/>
128      <function line='88' file='tree' name='xmlNewChild'/>
129      <function line='74' file='tree' name='xmlNewNode'/>
130      <function line='46' file='tree' name='xmlCreateIntSubset'/>
131      <function line='99' file='tree' name='xmlFreeDoc'/>
132      <function line='39' file='tree' name='xmlNewDoc'/>
133    </uses>
134  </example>
135  <example filename='testWriter.c'>
136    <synopsis>use various APIs for the xmlWriter</synopsis>
137    <purpose>tests a number of APIs for the xmlWriter, especially the various methods to write to a filename, to a memory buffer, to a new document, or to a subtree. It shows how to do encoding string conversions too. The resulting documents are then serialized.</purpose>
138    <usage>testWriter</usage>
139    <test>testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res</test>
140    <author>Alfred Mickautsch</author>
141    <copy>see Copyright for the status of this software. </copy>
142    <section>xmlWriter</section>
143    <includes>
144      <include>&lt;libxml/encoding.h&gt;</include>
145      <include>&lt;libxml/xmlwriter.h&gt;</include>
146    </includes>
147    <uses>
148      <function line='1111' file='xmlwriter' name='xmlTextWriterEndElement'/>
149      <function line='901' file='tree' name='xmlDocSetRootElement'/>
150      <function line='913' file='xmlwriter' name='xmlTextWriterStartDocument'/>
151      <function line='1121' file='xmlwriter' name='xmlTextWriterEndDocument'/>
152      <function line='959' file='xmlwriter' name='xmlTextWriterWriteFormatComment'/>
153      <function line='925' file='xmlwriter' name='xmlTextWriterWriteComment'/>
154      <function line='54' file='parser' name='xmlCleanupParser'/>
155      <variable line='1166' file='globals' name='xmlMalloc'/>
156      <function line='1073' file='xmlwriter' name='xmlTextWriterWriteFormatElement'/>
157      <function line='1156' file='encoding' name='xmlFindCharEncodingHandler'/>
158      <typedef line='1151' file='encoding' name='xmlCharEncodingHandlerPtr'/>
159      <function line='904' file='xmlwriter' name='xmlNewTextWriterTree'/>
160      <function line='76' file='xmlwriter' name='xmlNewTextWriterFilename'/>
161      <function line='1131' file='tree' name='xmlFreeDoc'/>
162      <typedef line='880' file='tree' name='xmlNodePtr'/>
163      <typedef line='879' file='tree' name='xmlDocPtr'/>
164      <typedef line='341' file='tree' name='xmlBufferPtr'/>
165      <function line='632' file='xmlwriter' name='xmlNewTextWriterDoc'/>
166      <function line='894' file='tree' name='xmlNewDocNode'/>
167      <function line='1129' file='tree' name='xmlSaveFileEnc'/>
168      <function line='58' file='xmlmemory' name='xmlMemoryDump'/>
169      <macro line='885' file='parser' name='XML_DEFAULT_VERSION'/>
170      <function line='355' file='xmlwriter' name='xmlNewTextWriterMemory'/>
171      <variable line='1180' file='globals' name='xmlFree'/>
172      <function line='1096' file='xmlwriter' name='xmlTextWriterStartElement'/>
173      <function line='1127' file='xmlwriter' name='xmlFreeTextWriter'/>
174      <function line='347' file='tree' name='xmlBufferCreate'/>
175      <macro line='40' file='xmlversion' name='LIBXML_TEST_VERSION'/>
176      <function line='613' file='tree' name='xmlBufferFree'/>
177      <typedef line='878' file='xmlwriter' name='xmlTextWriterPtr'/>
178      <function line='1103' file='xmlwriter' name='xmlTextWriterWriteElement'/>
179      <function line='949' file='xmlwriter' name='xmlTextWriterWriteAttribute'/>
180      <variable line='1183' file='globals' name='xmlRealloc'/>
181      <function line='885' file='tree' name='xmlNewDoc'/>
182    </uses>
183  </example>
184  <example filename='reader1.c'>
185    <synopsis>Parse an XML file with an xmlReader</synopsis>
186    <purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the informations about the nodes found in the process. (Note that the XMLReader functions require libxml2 version later than 2.6.)</purpose>
187    <usage>reader1 &lt;filename&gt;</usage>
188    <test>reader1 test2.xml &gt; reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp</test>
189    <author>Daniel Veillard</author>
190    <copy>see Copyright for the status of this software. </copy>
191    <section>xmlReader</section>
192    <includes>
193      <include>&lt;libxml/xmlreader.h&gt;</include>
194    </includes>
195    <uses>
196      <function line='44' file='xmlstring' name='xmlStrlen'/>
197      <function line='37' file='xmlreader' name='xmlTextReaderNodeType'/>
198      <typedef line='59' file='xmlreader' name='xmlTextReaderPtr'/>
199      <function line='98' file='xmlmemory' name='xmlMemoryDump'/>
200      <function line='33' file='xmlreader' name='xmlTextReaderConstValue'/>
201      <function line='36' file='xmlreader' name='xmlTextReaderDepth'/>
202      <function line='69' file='xmlreader' name='xmlFreeTextReader'/>
203      <function line='29' file='xmlreader' name='xmlTextReaderConstName'/>
204      <function line='40' file='xmlreader' name='xmlTextReaderHasValue'/>
205      <function line='67' file='xmlreader' name='xmlTextReaderRead'/>
206      <function line='39' file='xmlreader' name='xmlTextReaderIsEmptyElement'/>
207      <function line='62' file='xmlreader' name='xmlReaderForFile'/>
208    </uses>
209  </example>
210  <example filename='reader2.c'>
211    <synopsis>Parse and validate an XML file with an xmlReader</synopsis>
212    <purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file validating the content in the process and activating options like entities substitution, and DTD attributes defaulting. (Note that the XMLReader functions require libxml2 version later than 2.6.)</purpose>
213    <usage>reader2 &lt;valid_xml_filename&gt;</usage>
214    <test>reader2 test2.xml &gt; reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp</test>
215    <author>Daniel Veillard</author>
216    <copy>see Copyright for the status of this software. </copy>
217    <section>xmlReader</section>
218    <includes>
219      <include>&lt;libxml/xmlreader.h&gt;</include>
220    </includes>
221    <uses>
222      <function line='45' file='xmlstring' name='xmlStrlen'/>
223      <function line='38' file='xmlreader' name='xmlTextReaderNodeType'/>
224      <typedef line='60' file='xmlreader' name='xmlTextReaderPtr'/>
225      <function line='34' file='xmlreader' name='xmlTextReaderConstValue'/>
226      <enum line='70' file='parser' name='XML_PARSE_NOENT'/>
227      <function line='37' file='xmlreader' name='xmlTextReaderDepth'/>
228      <enum line='71' file='parser' name='XML_PARSE_DTDVALID'/>
229      <enum line='69' file='parser' name='XML_PARSE_DTDATTR'/>
230      <function line='84' file='xmlreader' name='xmlFreeTextReader'/>
231      <function line='30' file='xmlreader' name='xmlTextReaderConstName'/>
232      <function line='41' file='xmlreader' name='xmlTextReaderHasValue'/>
233      <function line='76' file='xmlreader' name='xmlTextReaderRead'/>
234      <function line='40' file='xmlreader' name='xmlTextReaderIsEmptyElement'/>
235      <function line='68' file='xmlreader' name='xmlReaderForFile'/>
236      <function line='81' file='xmlreader' name='xmlTextReaderIsValid'/>
237    </uses>
238  </example>
239  <example filename='reader3.c'>
240    <synopsis>Show how to extract subdocuments with xmlReader</synopsis>
241    <purpose>Demonstrate the use of xmlTextReaderPreservePattern() to parse an XML file with the xmlReader while collecting only some subparts of the document. (Note that the XMLReader functions require libxml2 version later than 2.6.)</purpose>
242    <usage>reader3</usage>
243    <test>reader3 &gt; reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp</test>
244    <author>Daniel Veillard</author>
245    <copy>see Copyright for the status of this software. </copy>
246    <section>xmlReader</section>
247    <includes>
248      <include>&lt;libxml/xmlreader.h&gt;</include>
249    </includes>
250    <uses>
251      <typedef line='31' file='xmlreader' name='xmlTextReaderPtr'/>
252      <function line='37' file='xmlreader' name='xmlReaderForFile'/>
253      <function line='65' file='xmlreader' name='xmlFreeTextReader'/>
254      <function line='95' file='tree' name='xmlDocDump'/>
255      <function line='51' file='xmlreader' name='xmlTextReaderRead'/>
256      <function line='61' file='xmlreader' name='xmlTextReaderCurrentDoc'/>
257      <function line='42' file='xmlreader' name='xmlTextReaderPreservePattern'/>
258      <typedef line='76' file='tree' name='xmlDocPtr'/>
259    </uses>
260  </example>
261  <example filename='io1.c'>
262    <synopsis>Example of custom Input/Output</synopsis>
263    <purpose>Demonstrate the use of xmlRegisterInputCallbacks to build a custom I/O layer, this is used in an XInclude method context to show how dynamic document can be built in a clean way.</purpose>
264    <usage>io1</usage>
265    <test>io1 &gt; io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp</test>
266    <author>Daniel Veillard</author>
267    <copy>see Copyright for the status of this software. </copy>
268    <section>InputOutput</section>
269    <includes>
270      <include>&lt;libxml/parser.h&gt;</include>
271      <include>&lt;libxml/xinclude.h&gt;</include>
272      <include>&lt;libxml/tree.h&gt;</include>
273      <include>&lt;libxml/xmlIO.h&gt;</include>
274    </includes>
275    <uses>
276      <function line='143' file='tree' name='xmlDocDump'/>
277      <function line='134' file='xinclude' name='xmlXIncludeProcess'/>
278      <function line='117' file='xmlIO' name='xmlRegisterInputCallbacks'/>
279      <function line='124' file='parser' name='xmlReadMemory'/>
280      <typedef line='105' file='tree' name='xmlDocPtr'/>
281    </uses>
282  </example>
283  <example filename='parse3.c'>
284    <synopsis>Parse an XML document in memory to a tree and free it</synopsis>
285    <purpose>Demonstrate the use of xmlReadMemory() to read an XML file into a tree and and xmlFreeDoc() to free the resulting tree</purpose>
286    <usage>parse3</usage>
287    <test>parse3</test>
288    <author>Daniel Veillard</author>
289    <copy>see Copyright for the status of this software. </copy>
290    <section>Parsing</section>
291    <includes>
292      <include>&lt;libxml/tree.h&gt;</include>
293      <include>&lt;libxml/parser.h&gt;</include>
294    </includes>
295    <uses>
296      <function line='33' file='parser' name='xmlReadMemory'/>
297    </uses>
298  </example>
299  <example filename='parse4.c'>
300    <synopsis>Parse an XML document chunk by chunk to a tree and free it</synopsis>
301    <purpose>Demonstrate the use of xmlCreatePushParserCtxt() and xmlParseChunk() to read an XML file progressively into a tree and and xmlFreeDoc() to free the resulting tree</purpose>
302    <usage>parse4 test3.xml</usage>
303    <test>parse4 test3.xml</test>
304    <author>Daniel Veillard</author>
305    <copy>see Copyright for the status of this software. </copy>
306    <section>Parsing</section>
307    <includes>
308      <include>&lt;libxml/tree.h&gt;</include>
309      <include>&lt;libxml/parser.h&gt;</include>
310    </includes>
311    <uses>
312      <function line='93' file='parser' name='xmlFreeParserCtxt'/>
313      <function line='85' file='parser' name='xmlParseChunk'/>
314      <function line='66' file='parser' name='xmlCreatePushParserCtxt'/>
315      <typedef line='44' file='tree' name='xmlParserCtxtPtr'/>
316    </uses>
317  </example>
318  <example filename='io2.c'>
319    <synopsis>Output to char buffer</synopsis>
320    <purpose>Demonstrate the use of xmlDocDumpMemory to output document to a character buffer</purpose>
321    <usage>io2</usage>
322    <test>io2 &gt; io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp</test>
323    <author>John Fleck</author>
324    <copy>see Copyright for the status of this software. </copy>
325    <section>InputOutput</section>
326    <includes>
327      <include>&lt;libxml/parser.h&gt;</include>
328    </includes>
329    <uses>
330      <function line='27' file='tree' name='xmlNodeSetContent'/>
331      <function line='34' file='tree' name='xmlDocDumpFormatMemory'/>
332      <variable line='40' file='globals' name='xmlFree'/>
333      <function line='28' file='tree' name='xmlDocSetRootElement'/>
334      <typedef line='17' file='tree' name='xmlNodePtr'/>
335      <function line='25' file='tree' name='xmlNewDoc'/>
336      <function line='26' file='tree' name='xmlNewNode'/>
337    </uses>
338  </example>
339  <example filename='xpath2.c'>
340    <synopsis>Load a document, locate subelements with XPath, modify said elements and save the resulting document.</synopsis>
341    <purpose>Shows how to make a full round-trip from a load/edit/save</purpose>
342    <usage>xpath2 &lt;xml-file&gt; &lt;xpath-expr&gt; &lt;new-value&gt;</usage>
343    <test>xpath2 test3.xml &apos;//discarded&apos; discarded &gt; xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp</test>
344    <author>Aleksey Sanin and Daniel Veillard</author>
345    <copy>see Copyright for the status of this software. </copy>
346    <section>XPath</section>
347    <includes>
348      <include>&lt;libxml/xpath.h&gt;</include>
349      <include>&lt;libxml/parser.h&gt;</include>
350      <include>&lt;libxml/xpathInternals.h&gt;</include>
351      <include>&lt;libxml/tree.h&gt;</include>
352    </includes>
353    <uses>
354      <function line='161' file='tree' name='xmlNodeSetContent'/>
355      <function line='126' file='tree' name='xmlDocDump'/>
356      <typedef line='87' file='xpath' name='xmlXPathObjectPtr'/>
357      <function line='109' file='xpath' name='xmlXPathEvalExpression'/>
358      <function line='122' file='xpath' name='xmlXPathFreeObject'/>
359      <function line='101' file='xpath' name='xmlXPathNewContext'/>
360      <typedef line='86' file='xpath' name='xmlXPathContextPtr'/>
361      <function line='123' file='xpath' name='xmlXPathFreeContext'/>
362      <function line='40' file='parser' name='xmlInitParser'/>
363      <enum line='179' file='tree' name='XML_NAMESPACE_DECL'/>
364      <function line='94' file='parser' name='xmlParseFile'/>
365    </uses>
366  </example>
367  <symbols>
368    <symbol name='LIBXML_TEST_VERSION'>
369      <ref filename='xpath1.c'/>
370      <ref filename='parse1.c'/>
371      <ref filename='parse2.c'/>
372      <ref filename='tree1.c'/>
373      <ref filename='tree2.c'/>
374      <ref filename='testWriter.c'/>
375    </symbol>
376    <symbol name='XML_DEFAULT_VERSION'>
377      <ref filename='testWriter.c'/>
378    </symbol>
379    <symbol name='XML_ELEMENT_NODE'>
380      <ref filename='xpath1.c'/>
381      <ref filename='tree1.c'/>
382    </symbol>
383    <symbol name='XML_NAMESPACE_DECL'>
384      <ref filename='xpath1.c'/>
385      <ref filename='xpath2.c'/>
386    </symbol>
387    <symbol name='XML_PARSE_DTDATTR'>
388      <ref filename='reader2.c'/>
389    </symbol>
390    <symbol name='XML_PARSE_DTDVALID'>
391      <ref filename='parse2.c'/>
392      <ref filename='reader2.c'/>
393    </symbol>
394    <symbol name='XML_PARSE_NOENT'>
395      <ref filename='reader2.c'/>
396    </symbol>
397    <symbol name='xmlAddChild'>
398      <ref filename='tree2.c'/>
399    </symbol>
400    <symbol name='xmlBufferCreate'>
401      <ref filename='testWriter.c'/>
402    </symbol>
403    <symbol name='xmlBufferFree'>
404      <ref filename='testWriter.c'/>
405    </symbol>
406    <symbol name='xmlBufferPtr'>
407      <ref filename='testWriter.c'/>
408    </symbol>
409    <symbol name='xmlCharEncodingHandlerPtr'>
410      <ref filename='testWriter.c'/>
411    </symbol>
412    <symbol name='xmlCleanupParser'>
413      <ref filename='xpath1.c'/>
414      <ref filename='parse1.c'/>
415      <ref filename='parse2.c'/>
416      <ref filename='tree1.c'/>
417      <ref filename='tree2.c'/>
418      <ref filename='testWriter.c'/>
419    </symbol>
420    <symbol name='xmlCreateIntSubset'>
421      <ref filename='tree2.c'/>
422    </symbol>
423    <symbol name='xmlCreatePushParserCtxt'>
424      <ref filename='parse4.c'/>
425    </symbol>
426    <symbol name='xmlCtxtReadFile'>
427      <ref filename='parse2.c'/>
428    </symbol>
429    <symbol name='xmlDocDump'>
430      <ref filename='reader3.c'/>
431      <ref filename='io1.c'/>
432      <ref filename='xpath2.c'/>
433    </symbol>
434    <symbol name='xmlDocDumpFormatMemory'>
435      <ref filename='io2.c'/>
436    </symbol>
437    <symbol name='xmlDocGetRootElement'>
438      <ref filename='tree1.c'/>
439    </symbol>
440    <symbol name='xmlDocPtr'>
441      <ref filename='xpath1.c'/>
442      <ref filename='parse1.c'/>
443      <ref filename='parse2.c'/>
444      <ref filename='testWriter.c'/>
445      <ref filename='reader3.c'/>
446      <ref filename='io1.c'/>
447    </symbol>
448    <symbol name='xmlDocSetRootElement'>
449      <ref filename='tree2.c'/>
450      <ref filename='testWriter.c'/>
451      <ref filename='io2.c'/>
452    </symbol>
453    <symbol name='xmlFindCharEncodingHandler'>
454      <ref filename='testWriter.c'/>
455    </symbol>
456    <symbol name='xmlFree'>
457      <ref filename='xpath1.c'/>
458      <ref filename='testWriter.c'/>
459      <ref filename='io2.c'/>
460    </symbol>
461    <symbol name='xmlFreeDoc'>
462      <ref filename='xpath1.c'/>
463      <ref filename='parse1.c'/>
464      <ref filename='parse2.c'/>
465      <ref filename='tree1.c'/>
466      <ref filename='tree2.c'/>
467      <ref filename='testWriter.c'/>
468    </symbol>
469    <symbol name='xmlFreeParserCtxt'>
470      <ref filename='parse2.c'/>
471      <ref filename='parse4.c'/>
472    </symbol>
473    <symbol name='xmlFreeTextReader'>
474      <ref filename='reader1.c'/>
475      <ref filename='reader2.c'/>
476      <ref filename='reader3.c'/>
477    </symbol>
478    <symbol name='xmlFreeTextWriter'>
479      <ref filename='testWriter.c'/>
480    </symbol>
481    <symbol name='xmlInitParser'>
482      <ref filename='xpath1.c'/>
483      <ref filename='xpath2.c'/>
484    </symbol>
485    <symbol name='xmlMalloc'>
486      <ref filename='testWriter.c'/>
487    </symbol>
488    <symbol name='xmlMemoryDump'>
489      <ref filename='xpath1.c'/>
490      <ref filename='parse1.c'/>
491      <ref filename='parse2.c'/>
492      <ref filename='tree2.c'/>
493      <ref filename='testWriter.c'/>
494      <ref filename='reader1.c'/>
495    </symbol>
496    <symbol name='xmlNewChild'>
497      <ref filename='tree2.c'/>
498    </symbol>
499    <symbol name='xmlNewDoc'>
500      <ref filename='tree2.c'/>
501      <ref filename='testWriter.c'/>
502      <ref filename='io2.c'/>
503    </symbol>
504    <symbol name='xmlNewDocNode'>
505      <ref filename='testWriter.c'/>
506    </symbol>
507    <symbol name='xmlNewNode'>
508      <ref filename='tree2.c'/>
509      <ref filename='io2.c'/>
510    </symbol>
511    <symbol name='xmlNewParserCtxt'>
512      <ref filename='parse2.c'/>
513    </symbol>
514    <symbol name='xmlNewProp'>
515      <ref filename='tree2.c'/>
516    </symbol>
517    <symbol name='xmlNewText'>
518      <ref filename='tree2.c'/>
519    </symbol>
520    <symbol name='xmlNewTextWriterDoc'>
521      <ref filename='testWriter.c'/>
522    </symbol>
523    <symbol name='xmlNewTextWriterFilename'>
524      <ref filename='testWriter.c'/>
525    </symbol>
526    <symbol name='xmlNewTextWriterMemory'>
527      <ref filename='testWriter.c'/>
528    </symbol>
529    <symbol name='xmlNewTextWriterTree'>
530      <ref filename='testWriter.c'/>
531    </symbol>
532    <symbol name='xmlNodePtr'>
533      <ref filename='xpath1.c'/>
534      <ref filename='testWriter.c'/>
535      <ref filename='io2.c'/>
536    </symbol>
537    <symbol name='xmlNodeSetContent'>
538      <ref filename='io2.c'/>
539      <ref filename='xpath2.c'/>
540    </symbol>
541    <symbol name='xmlNsPtr'>
542      <ref filename='xpath1.c'/>
543    </symbol>
544    <symbol name='xmlParseChunk'>
545      <ref filename='parse4.c'/>
546    </symbol>
547    <symbol name='xmlParseFile'>
548      <ref filename='xpath1.c'/>
549      <ref filename='tree1.c'/>
550      <ref filename='xpath2.c'/>
551    </symbol>
552    <symbol name='xmlParserCtxtPtr'>
553      <ref filename='parse2.c'/>
554      <ref filename='parse4.c'/>
555    </symbol>
556    <symbol name='xmlReadFile'>
557      <ref filename='parse1.c'/>
558    </symbol>
559    <symbol name='xmlReadMemory'>
560      <ref filename='io1.c'/>
561      <ref filename='parse3.c'/>
562    </symbol>
563    <symbol name='xmlReaderForFile'>
564      <ref filename='reader1.c'/>
565      <ref filename='reader2.c'/>
566      <ref filename='reader3.c'/>
567    </symbol>
568    <symbol name='xmlRealloc'>
569      <ref filename='testWriter.c'/>
570    </symbol>
571    <symbol name='xmlRegisterInputCallbacks'>
572      <ref filename='io1.c'/>
573    </symbol>
574    <symbol name='xmlSaveFileEnc'>
575      <ref filename='testWriter.c'/>
576    </symbol>
577    <symbol name='xmlSaveFormatFileEnc'>
578      <ref filename='tree2.c'/>
579    </symbol>
580    <symbol name='xmlStrchr'>
581      <ref filename='xpath1.c'/>
582    </symbol>
583    <symbol name='xmlStrdup'>
584      <ref filename='xpath1.c'/>
585    </symbol>
586    <symbol name='xmlStrlen'>
587      <ref filename='reader1.c'/>
588      <ref filename='reader2.c'/>
589    </symbol>
590    <symbol name='xmlTextReaderConstName'>
591      <ref filename='reader1.c'/>
592      <ref filename='reader2.c'/>
593    </symbol>
594    <symbol name='xmlTextReaderConstValue'>
595      <ref filename='reader1.c'/>
596      <ref filename='reader2.c'/>
597    </symbol>
598    <symbol name='xmlTextReaderCurrentDoc'>
599      <ref filename='reader3.c'/>
600    </symbol>
601    <symbol name='xmlTextReaderDepth'>
602      <ref filename='reader1.c'/>
603      <ref filename='reader2.c'/>
604    </symbol>
605    <symbol name='xmlTextReaderHasValue'>
606      <ref filename='reader1.c'/>
607      <ref filename='reader2.c'/>
608    </symbol>
609    <symbol name='xmlTextReaderIsEmptyElement'>
610      <ref filename='reader1.c'/>
611      <ref filename='reader2.c'/>
612    </symbol>
613    <symbol name='xmlTextReaderIsValid'>
614      <ref filename='reader2.c'/>
615    </symbol>
616    <symbol name='xmlTextReaderNodeType'>
617      <ref filename='reader1.c'/>
618      <ref filename='reader2.c'/>
619    </symbol>
620    <symbol name='xmlTextReaderPreservePattern'>
621      <ref filename='reader3.c'/>
622    </symbol>
623    <symbol name='xmlTextReaderPtr'>
624      <ref filename='reader1.c'/>
625      <ref filename='reader2.c'/>
626      <ref filename='reader3.c'/>
627    </symbol>
628    <symbol name='xmlTextReaderRead'>
629      <ref filename='reader1.c'/>
630      <ref filename='reader2.c'/>
631      <ref filename='reader3.c'/>
632    </symbol>
633    <symbol name='xmlTextWriterEndDocument'>
634      <ref filename='testWriter.c'/>
635    </symbol>
636    <symbol name='xmlTextWriterEndElement'>
637      <ref filename='testWriter.c'/>
638    </symbol>
639    <symbol name='xmlTextWriterPtr'>
640      <ref filename='testWriter.c'/>
641    </symbol>
642    <symbol name='xmlTextWriterStartDocument'>
643      <ref filename='testWriter.c'/>
644    </symbol>
645    <symbol name='xmlTextWriterStartElement'>
646      <ref filename='testWriter.c'/>
647    </symbol>
648    <symbol name='xmlTextWriterWriteAttribute'>
649      <ref filename='testWriter.c'/>
650    </symbol>
651    <symbol name='xmlTextWriterWriteComment'>
652      <ref filename='testWriter.c'/>
653    </symbol>
654    <symbol name='xmlTextWriterWriteElement'>
655      <ref filename='testWriter.c'/>
656    </symbol>
657    <symbol name='xmlTextWriterWriteFormatComment'>
658      <ref filename='testWriter.c'/>
659    </symbol>
660    <symbol name='xmlTextWriterWriteFormatElement'>
661      <ref filename='testWriter.c'/>
662    </symbol>
663    <symbol name='xmlXIncludeProcess'>
664      <ref filename='io1.c'/>
665    </symbol>
666    <symbol name='xmlXPathContextPtr'>
667      <ref filename='xpath1.c'/>
668      <ref filename='xpath2.c'/>
669    </symbol>
670    <symbol name='xmlXPathEvalExpression'>
671      <ref filename='xpath1.c'/>
672      <ref filename='xpath2.c'/>
673    </symbol>
674    <symbol name='xmlXPathFreeContext'>
675      <ref filename='xpath1.c'/>
676      <ref filename='xpath2.c'/>
677    </symbol>
678    <symbol name='xmlXPathFreeObject'>
679      <ref filename='xpath1.c'/>
680      <ref filename='xpath2.c'/>
681    </symbol>
682    <symbol name='xmlXPathNewContext'>
683      <ref filename='xpath1.c'/>
684      <ref filename='xpath2.c'/>
685    </symbol>
686    <symbol name='xmlXPathObjectPtr'>
687      <ref filename='xpath1.c'/>
688      <ref filename='xpath2.c'/>
689    </symbol>
690    <symbol name='xmlXPathRegisterNs'>
691      <ref filename='xpath1.c'/>
692    </symbol>
693  </symbols>
694  <sections>
695    <section name='InputOutput'>
696      <example filename='io1.c'/>
697      <example filename='io2.c'/>
698    </section>
699    <section name='Parsing'>
700      <example filename='parse1.c'/>
701      <example filename='parse2.c'/>
702      <example filename='parse3.c'/>
703      <example filename='parse4.c'/>
704    </section>
705    <section name='Tree'>
706      <example filename='tree1.c'/>
707      <example filename='tree2.c'/>
708    </section>
709    <section name='XPath'>
710      <example filename='xpath1.c'/>
711      <example filename='xpath2.c'/>
712    </section>
713    <section name='xmlReader'>
714      <example filename='reader1.c'/>
715      <example filename='reader2.c'/>
716      <example filename='reader3.c'/>
717    </section>
718    <section name='xmlWriter'>
719      <example filename='testWriter.c'/>
720    </section>
721  </sections>
722</examples>
723