You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by tom john <cy...@yahoo.com> on 2002/03/27 18:41:31 UTC

xpath with the node extracted from DOM Document

Hi,

I need to search for a value using xpath to a node i
get from a document. 
So first i get a required node from the document.
and then send this node to run xpath.
works fine but there is a serious problem. XPathAPI
searches for the requested value in the first node of
the whole document, not the node that i pass.

I am new but my guess is when i pass node to XPathAPI
it searches the whole document
(node.getOwnerDocument()). 

What is a solution to it?

thankx

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/