Re: DOM 1 or DOM 2 analogs to MSXML3 extensions
William Edney <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Yep, and DOM Level 3 even goes further than Microsoft's stuff in allowing you to have 'scalar' return values from an XPath expression (Strings, Booleans or Numbers). Had to hack a nasty bit of XSLT to get the same functionality in IE... Cheers, - Bill Neil Deakin wrote: > 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