Questions tagged [xpath-api]
4 questions
8
votes
5 answers
Saxon XPath API returns TinyElementImpl instead of org.w3c.dom.Node
I have the following code:
// xpath evaluates to net.sf.saxon.xpath.XPathEvaluator
XPath xpath = XPathFactory.newInstance().newXPath();
XPathExpression expression = xpath.compile("/foo/bar");
Object evaluate = expression.evaluate(someXML,…

Eran Medan
- 44,555
- 61
- 184
- 276
2
votes
2 answers
String javax.xml.xpath.XPathExpression.evaluate(Object item) guarantees it never returns null in all implementations?
From the JavaDoc: returns: The String that is the result of evaluating the expression and converting the result to a String.
/**
* ...
* ...
* @return The
String
that is the result of evaluating the expression and converting the…
Eran Medan
- 44,555
- 61
- 184
- 276
1
vote
5 answers
Which XPathAPI should I use in Java 1.5?
I have been using com.sun.org.apache.xpath.internal.XPathAPI for some time and it seems to work ok. Recently I tried to use the TPTP profiler in Eclipse but it could not find the XPathAPI class.
I haven't figured this problem yet but it did make me…

paul
- 13,312
- 23
- 81
- 144
0
votes
1 answer
XPathAPI Jar for Android
Am using vzaar Android API to upload videos. The vzaar contains XPathAPI for that I included
jaxb-xalan-1.5 with that it working fine android 2.2 and above.
But When I about to install in 2.1 or 1.6, app not installing.
It simply throws…

Uday
- 5,933
- 9
- 44
- 76