Re: DOM 1 or DOM 2 analogs to MSXML3 extensions

Neil Deakin <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Paul wrote:
> Hi All,
> 
> I am thinking about porting to Mozilla (Firefox?) a large Windows IE-based
> DHTML/XML/XSL application.
> 
> Surmounting the activeXObject stuff was easy. But I am wondering about a
> 'best practices' way of replacing certain MS extensions to the W3C spec.
> Specifically,
> MS provided some very useful XML DOM functions like selectSingleNode and
> selectNodes. Each takes a valid XPATH expression and returns one (or more)
> matching node(s).
> 
> Does any one know a good Mozilla-related analog for these (and others)?
> 
> Thank you.
> 
> -pmb
> 
> 
> 

For this, you would use the DOM3 XPath api:

http://www.w3.org/TR/DOM-Level-3-XPath/

Specifically, document.evaluate(...)

/ Neil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.