This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
<spanclass="acronym">XML</span>, portable across a large number of platforms. This
tutorial provides examples of its basic functions.</p></div><divclass="sect1"lang="en"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aname="introduction"></a>Introduction</h2></div></div><div></div></div><p>Libxml is a C language library implementing functions for reading,
creating and manipulating <spanclass="acronym">XML</span> data. This tutorial
provides example code and explanations of its basic functionality.</p><p>Libxml and more details about its use are available on <ahref="http://www.xmlsoft.org/"target="_top">the project home page</a>. Included there is complete <ahref="http://xmlsoft.org/html/libxml-lib.html"target="_top">
<spanclass="acronym">API</span> documentation</a>. This tutorial is not meant
to substitute for that complete documentation, but to illustrate the
functions needed to use the library to perform basic operations.
</p><p>The tutorial is based on a simple <spanclass="acronym">XML</span> application I
use for articles I write. The format includes metadata and the body
of the article.</p><p>The example code in this tutorial demonstrates how to:
</p><divclass="itemizedlist"><ultype="disc"><li><p>Parse the document.</p></li><li><p>Extract the text within a specified element.</p></li><li><p>Add an element and its content.</p></li><li><p>Add an attribute.</p></li><li><p>Extract the value of an attribute.</p></li></ul></div><p>
</p><p>Full code for the examples is included in the appendices.</p></div></div><divclass="navfooter"><hr><tablewidth="100%"summary="Navigation footer"><tr><tdwidth="40%"align="left"></td><tdwidth="20%"align="center"></td><tdwidth="40%"align="right"><aaccesskey="n"href="ar01s02.html">Next</a></td></tr><tr><tdwidth="40%"align="left"valign="top"></td><tdwidth="20%"align="center"></td><tdwidth="40%"align="right"valign="top">Data Types</td></tr></table></div></body></html>