Hi
I have an XML of this format.
I want to populate a list as
2015-02-26, XXX,Monitor
2015-02-27, YYY, Printer
In my code (C# - Winform) I have composed as below.
XmlNodeList xNode = xd.SelectNodes("/Body/A/B/SH");
foreach (XmlNode xndNode in xNode)
{
string LU = xndNode["last_update_time"].InnerText;
string D = xndNode["D"].InnerText;
string Comments = xndNode["comments"].InnerText;
}
foreach (XmlNode xndNode in xNode)
{
string LU = xndNode["last_update_time"].InnerText;
string D = xndNode["D"].InnerText;
string Comments = xndNode["comments"].InnerText;
}
Yet, I am not able to get the desired output. Any help where I have gone wrong, please.

Rajesh SinghRank #1,806 · 824 reputationPosted Dec 19, 2015, 6:24 AM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 19, 2015, 6:35 AM EST