How to get parameter values from an XmlNode in C#

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2010-03-25T03:34:56Z Indexed on 2010/03/25 3:43 UTC
Read the original article Hit count: 318

Filed under:
|

How do I get the values for parameters in a XmlNode tag. For example:

<weather time-layout="k-p24h-n7-1">
    <name>Weather Type, Coverage, and Intensity</name>
    <weather-conditions weather-summary="Mostly Sunny"/>
</weather>

I want to get the value for the parameter 'weather-summary' in the node 'weather-conditions'.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml