Run the SaxJumpStart Example
In this topic, you will run the SaxJumpStart example.
Procedure Title
The easiest way to run the SaxJumpStart example is to use the command prompt. Start a command prompt and change directories to the debug directory that contains the SaxJumpStart executable and the books.xml file.
Run the example by entering the following at the command prompt:
SaxJumpStart books.xml
The example will output the following:
Parsing document: books.xml
<?xml version="1.0" ?><books ="urn:books">
<book id="bk001">
<author>Writer</author>
<title>The First Book</title>
<genre>Fiction</genre>
<price>44.95</price>
<pub_date>2000-10-01</pub_date>
<review>An amazing story of nothing.</review>
</book>
<book id="bk002">
<author>Poet</author>
<title>The Poet's First Poem</title>
<genre>Poem</genre>
<price>24.95</price>
<review>Least poetic poems.</review>
</book>
</books>
Parse result code: 00000000