Run the Application

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Developer's Guide

Run the Application (Simple Filter)

The following instructions are based on the books.xml file, but you can also use other XML documents in this application.

To run the application

  1. Save the project and then copy books.xml to the folder where you saved the project.
  2. From the Visual Basic toolbar, click Start.
  3. In the Filename box, enter the path for the books.xml file.
  4. In the Element name box, type the name of the element that serves as the filter criteria. For this example, type "title".
  5. On the form, click Parse.

The Text2 text box displays the following results.

<title>XML Developer's Guide</title>
<title>Midnight Rain</title>
<title>Maeve Ascendant</title>
<title>Oberon's Legacy</title>
<title>The Sundered Grail</title>
<title>Lover Birds</title>
<title>Splish Splash</title>
<title>Creepy Crawlies</title>
<title>Paradox Lost</title>
<title>Microsoft .NET: The Programming Bible</title>
<title>MSXML3: A Comprehensive Guide</title>
<title>Visual Studio 7: A Comprehensive Guide</title>

See Also

Sample XML File (books.xml)