With VTD-XML, is it possible to execute the following XPath statement?
if(10 > 5) then "yes" else "no"`
I have a much more complex statement, but it will not run with my current setup. There are these methods possible: evalXPathToBoolean()
, evalXPathToNumber()
, and evalXpathToString()
. But, I am receiving this error when trying to execute:
com.ximpleware.extended.XPathParseExceptionHuge: XPath Syntax error: #8
autoPilot.selectXPath(xpath) // does not like this
while((i=autoPilot.evalXPath())!=-1){
list.add(vtdNav.toString(i));
}
This is valid XPath and works in XMLSpy. Is it possible to do this with VTD-XML? Please advise.