![JAR search and dependency download from the Maven repository](/logo.png)
examples.Indexing.IndexLoad.cs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vtd-xml Show documentation
Show all versions of vtd-xml Show documentation
XimpleWare's VTD-XML is, far and away, the industry's most advanced and powerful XML processing model for SOA and Cloud Computing
using System;
using System.Collections.Generic;
using System.Text;
using com.ximpleware;
using System.IO;
//This example shows how to load a VTD+XML index
// into memory then run an XPath against it
// vg.loadIndex returns an instance of VTDNav
namespace IndexLoad
{
class IndexLoad
{
static void Main(string[] args)
{
try
{
VTDGen vg = new VTDGen();
VTDNav vn = vg.loadIndex("po.vxl");
AutoPilot ap = new AutoPilot(vn);
ap.selectXPath("//items");
int i;
while ((i = ap.evalXPath()) != -1)
{
}
ap.resetXPath();
}
catch (Exception e)
{
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy