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.
Manas MohapatraPosted Dec 19, 2015, 11:35 AM
Rajesh SinghPosted Dec 19, 2015, 11:24 AM