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]

RE: XPATH and MSXML


Excellant ... thank you !!

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Don Bruey
Sent: Tuesday, February 13, 2001 8:44 AM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] XPATH and MSXML


I just went through this myself.  Dimitre N.  set me straight on a MS
newsgroup.  You need to tell DOM to accept and use XPath expressions.  In VB
it would be something like this although I don't know the exact VB syntax.

XMLDoc.setProperty("SelectionLanguage", "XPath")


Don


-----Original Message-----
From: Ciaran Byrne [mailto:ciaran.byrne@3tl.com]
Sent: Tuesday, February 13, 2001 7:27 PM
To: Xsl-List
Subject: [xsl] XPATH and MSXML


Hi all,
	I'm using MSXML3 latest build to perform some
DOM Manipulation. I'm having a few problems using an XPATH
query string.

Set oDOMList = oDOM.selectNodes("ancestor::div")

I thought the XPATH Query "ancestor::wml" would select all the 'div'
ancestors of the context node if they exist. Instead I get an error:

**************
expected token 'eof' found ':'.
ancestor ->:<-:div
**************

Has anyone any ideas why this error has popped up ?

Cheers,
Ciaran.


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

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



 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]