This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [slightly OT] question about PAX and XPath


Hi, Malcolm,

I know that selectNodes and selectSingleNodes *do* take XPath; however, my understanding (pls correct if I'm wrong!) was that these methods are MS extensions of the DOM, and not part of any of the DOM standards (1,2, or 3) ... hence my concern about using them and my (so far fruitless) quest to find standard methods that accept XPath ...

Thanks,
Amanda

At 01:19 PM 6/5/2002 -0500, you wrote:


Hi Amanda,

selectNodes and selectSingleNodes do take XPath. I assume you're using MSXML4, in which case you have to do:

...
oMyDOM.load url
oMyDOM.setProperty "SelectionLanguage", "XPath"
..
set oMyNodeSet = oMyDOM.selectNodes(SomeXPath)

Not sure why, but I think it has something to do with the MS DOM supporting some pre-XPath query language. The SDK for the MSXML4 is pretty good.

cheers

Malcolm

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]