<xml> <data> <timing> <time-key>k-fkskdsj-23d</time-key> <time>12.30</time> <time>12.40</time> <time>12.43</time> </timing> <timing> <time-key>k-fkhhasw-36v</time-key> <time>17.30</time> <time>18.26</time> <time>21.25</time> </timing> </data> </xml>
XmlDocument doc = new XmlDocument(); doc.Load(your xml document); foreach (XmlNode node in doc.DocumentElement.ChildNodes) { if (node.Name == "time-key") node.InnerText;//This will give you k-fkskdsj-23d for first one }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)