Hi James,

you're right! However, given an XPath of e.g. "//@*[contains(.,'sub')]"
would search from the root, rather than the contextNode (which might be
correct). So I had to change to ".//@*[contains(.,'sub')]".

Thank you!

Marc

> -----Urspr�ngliche Nachricht-----
> Von:  James Melton [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Mittwoch, 30. Mai 2001 22:20
> An:   [EMAIL PROTECTED]
> Betreff:      Re: Apply selectNodeList() on Sub-Elements
> 
> The Element is a sub-type of Node and can be used as the context.
> 
> "Dzaebel, Marc" wrote:
> > 
> > Hi,
> > 
> > I need to apply XPathAPI.selectNodeList() on a Sub-Element of a
> > DOM-Tree, however, it needs a "contextNode". Giving a DOM-Node
> > it starts search from the root. Any idea?
> > 
> > Thanks, Marc
> 
> -- 
> 
> ____________________________________________________________
> James Melton                 CyLogix
> 609.750.5190                 609.750.5100
> [EMAIL PROTECTED]     www.cylogix.com

Reply via email to