I want to get the sub nodes list that are within my table called data. i have managed to get the value nodes and loop throw each. now i want to do the same as for the nodes within my comment tag. i have no idea on how can i get the nodes within the comment tag(font,datestamp and comment).
<data name="Exit_Button" xml:space="preserve">
<value>Exit Finger Enrolment</value>
<comment>[Font]Regular[/Font][DateStamp]2014/012/01 00:00:00[/DateStamp] [Comment] this is a comment.!![/Comment]</comment>
i have done this for value and it is working
XmlDocument _doc = new XmlDocument();
_doc.Load(outputFilePath);
string xmlcontents = _doc.InnerXml;
XmlNodeList _value = _doc.GetElementsByTagName("data");
foreach( XmlNode x in _value)
{
XmlNodeList y = x.ChildNodes;
for(int i = 0; i < y.Count; i++)
{
XmlNode z = y.Item(i);
if (z.Name.Contains("value"))
{
}
}
}