static void Main(string[] args) { VTDGen vg = new VTDGen(); if (vg.parseFile("mix3.xml", true)) { VTDNav vn = vg.getNav(); // duplicated VTDNav instances share the same XML, LC buffers and VTD buffers. VTDNav vn2 = vn.duplicateNav(); VTDNav vn3 = vn.duplicateNav(); AutoPilot ap = new AutoPilot(vn); ap.selectXPath("//*"); int i; while ((i = ap.evalXPath()) != -1) { Console.WriteLine("element name: " + vn.toString(i)); } } }