|
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 Service 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.
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.