[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [slightly OT] question about PAX and XPath

Subject: RE: [slightly OT] question about PAX and XPath
From: Amanda Birmingham <lists@xxxxxxxxxxxx>
Date: Wed, 05 Jun 2002 13:15:18 -0600
xpath selectsinglenodes
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.