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

Re: MSXML4 DOM - how get context node attribute value?

Subject: Re: MSXML4 DOM - how get context node attribute value?
From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx>
Date: Wed, 13 Apr 2005 18:01:45 +0300
selectsinglenode attribute value
Hardy Merrill wrote:

I'm using MSXML4 DOM in an ASP page - I've pinpointed a specific node in
the document using selectSingleNode, but now I need to get the value of
the "datatype" attribute of that node. I'm having trouble with the
MSXML4 documentation - can someone tell me how to get the value of an
attribute for the context node?


This is an XSL list; please use it for XSL-specific questions in the future.

The selectNodes and selectSingleNode M$ extensions can only return elements nodes AFAIK, so you'll just have to retreive the target element, cast it to Element if needed by your language and use DOM methods (getAttribute etc) to retreive the attribute value.

Manos

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-2013 All Rights Reserved.