[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: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Wed, 13 Apr 2005 16:57:52 +0100
msxml4
----- Original Message ----- From: "Hardy Merrill" <HMerrill@xxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, April 13, 2005 3:40 PM
Subject: MSXML4 DOM - how get context node attribute value?



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?

TIA.

Hardy Merrill

According to the documentation the dataType of a node specifies the type but only applies if a dtd has defined it, not an xdr or xsd schema. However I've found in the past that it does work in these cases.
If that doesn't work try selecting the attribute "dt:dt" after binding "dt" to the namespace uri of "urn:schemas-microsoft-com:datatypes".


Joe

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.