Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » XML » General » Downloads
 

Index XML Documents with VTD+XML

By , 11 Jun 2008
 
vtd-index.zip
app3
_.swp
accessIndex
accessIndex
bin
Debug
accessIndex.exe
Properties
genIndex
genIndex
bin
Debug
genIndex.exe
Properties
po.vxl
printPrice
printPrice
bin
Debug
printPrice.exe
Properties
root.vxl
template
template
bin
Debug
template.exe
Properties
using System;
using com.ximpleware;

namespace accessIndex
{
    class accessIndex
    {
        static void Main(string[] args)
        {
            VTDGen vg = new VTDGen();
            try
            {
                VTDNav vn = vg.loadIndex("d:/codeProject/app3/po.vxl");
                AutoPilot ap = new AutoPilot(vn);
                ap.selectXPath("/purchaseOrder/item/USPrice/text()");
                int i = -1;
                while ((i = ap.evalXPath()) != -1)
                {
                    Console.WriteLine(" USPrice ==> " + vn.toString(i));
                }
            }
            catch (VTDException e)
            {
            }

        }
    }
}

By viewing downloads associated with this article you agree to the Terms of use and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Jimmy Zhang
Chief Technology Officer XimpleWare
United States United States
Member
Jimmy Zhang is a cofounder of XimpleWare, a provider of high performance XML processing solutions. He has working experience in the fields of electronic design automation and Voice over IP for a number of Silicon Valley high-tech companies. He holds both a BS and MS from the department of EECS from U.C. Berkeley.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 12 Jun 2008
Article Copyright 2008 by Jimmy Zhang
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid