xsl-list
[Top] [All Lists]

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

2005-04-13 08:57:52
----- Original Message ----- From: "Hardy Merrill" <HMerrill(_at_)dhcr(_dot_)state(_dot_)ny(_dot_)us>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Wednesday, April 13, 2005 3:40 PM
Subject: [xsl] 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
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>