Hi,


i am using the XPathAPI.eval(Node ContextNode,String str) function to
evaluate an XPath Query on a context node which is a Comment Node or a
Processing Instruction.
It does not give me correct result .

The query is like -

contains(./,"book")

which returns false if the context node here is <!-- this is a book--> 

Does this eval function has a limitation that the Context Node can only be
an element node or a text node ?



Thanks.
Shruti.
 

Reply via email to