I have a bunch of xml's which contains elements's with namespaces and i am using VTD-XML to parse that xml. But when i tries to use an xpath to get a namespaced element. It will not fetch at all? Here is the xml sample
<startQuery logLinkID="797ca6afb7a32458:1619f4f5:14d8fa72127:-7ff5" modelName="SampleModel" tracerString="tracer:: std.Page1.Pane1">
<xql:XQL xmlns:xql="someNameSpace" cellCountThreshold="1000000" dumpOptions="" enableThresholdDrillDown="false" maxOverridenValueArraySize="" returnFullPath="true" returnNormalizedXql="true">
<HiddenValues errors="true" nulls="false" zeros="false" />
<CellAttributes cellsAsAttachment="true" editUEVInfo="false" formattingInfo="false" uevInfo="false" writeBackInfo="true" /></xql:XQL>
</startQuery>
But when i use the xpath as
AutoPilot ap = new AutoPilot(nav);
ap.selectXPath("//HiddenValues");
it works correctly but, when i use this xpath
ap.selectXPath("//XQL");
it will not work.
Please help me how i can ignore namespaces while evaluating XPath?