Developer's
Guide
0. Objective
In this article, you will see, step
by step, how VTD-XML processes a sample XML file. The main components of the
parsed representation are VTD records ,Location Caches, and the XML file
itself, which is kept intact and un-decoded.
The sample file is shown below.
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://www.xml.com/xml/news.rss">
<title>XML.com</title>
<description>
XML.com features a rich mix of information and
services
for the XML community.
</description>
</channel>
<item rdf:about="http://xml.com/pub/2000/08/09/xslt/xslt.html">
<title>Processing Inclusions with XSLT</title>
<description>
This article proposes a way of preserving inclusion
information through SAX-based processing.
</description>
</item>
<item rdf:about="http://xml.com/pub/2000/08/09/rdfdb/index.html">
<title>Putting RDF to Work</title>
<link>http://xml.com/pub/2000/08/09/rdfdb/index.html</link>
<description>
Tool and API support for the Resource Description
Framework
is slowly coming of age.
</description>
</item>
</rdf:RDF>
|