Hi,

I am sure I will save time by asking at this forum!

I have been using DOM methods to go over an XML document. Now I am planning
to use XPathAPI as I am facing some problems there.

#1. How do I get the NodeList using XPathAPI? What is the better way
       I was trying out something like following but it does not work (I
get NodeList length as 1 if I use ".", and that is fine)
       nl = XPathAPI.selectNodeList(rootNode, "//someElement");

#2. For further processing I thought I would need to use XObject and
XPathAPI
      XObject obj = XPathAPI.eval(someNode,"xpath expr");

I am using the latest Xalan.jar.

Any suggestions, links and sorts which would give me a heads-up would be
appreciated.

Thanks,
Sanjay


Reply via email to