K
Kathy Burke
Hi, within asp.net, I'm using xpaths to retrieve data from xml strings.
For example:
Dim n10 As XmlElement = xDoc.SelectSingleNode("//Station/Timer[last()]")
The Timer element has several attributes (on, off, etc.) that I would
like to retrieve and set as a variable.
I've been using xmlAttribute =
xDoc.SelectSingleNode("//Station/Timer[last()]/@on") etc. to get the
individual attribute values.
Just wondering if there was a way to retrieve the attributes from the
XmlElement node instead of all the individual xmlAttributes ones???
Thanks,
Kathy
For example:
Dim n10 As XmlElement = xDoc.SelectSingleNode("//Station/Timer[last()]")
The Timer element has several attributes (on, off, etc.) that I would
like to retrieve and set as a variable.
I've been using xmlAttribute =
xDoc.SelectSingleNode("//Station/Timer[last()]/@on") etc. to get the
individual attribute values.
Just wondering if there was a way to retrieve the attributes from the
XmlElement node instead of all the individual xmlAttributes ones???
Thanks,
Kathy