File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting contextNode parameter for XPath use

 
Dave Ehrlich
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use the SelectSingleNode method of the XPathAPI class, but I don't understand how to set the contextNode input parameter which is of type Node.
The context of what I want to be searched is my XML document which is in a file. How do I get my XML document into a Node object so that I can pass it in as the contextNode parameter?
Any help would be appreciated.
Thanks,
Dave
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic