Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Specifying Context for XMLNode.selectSingleNode

noobjugglerDec 1 2008 — edited Dec 11 2008
Hi,
Can we specify the context node from where to start the xmpath search to the XMLNode.selectSingleNode method ?

I tried extracting a specific node & then use that node to invoke the selectSingleNode method, I was expecting that xpath search would happen for tags only within the node on which the selectSingleNode method was invoked , However that does not seem to happen & the xpath search seems to be taking place on the entire xml document.

Xalan provides
public static NodeList selectNodeList(Node contextNode,
java.lang.String str)

Which gives the functionality i am looking for !. Any suggestions as to how i can make the oracle selectSingleNode behave in a similar manner will be highly appreciated.

Thanks
Sudarshan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2009
Added on Dec 1 2008
1 comment
2,869 views