XmlNodeList _Nodelist = _doc.SelectNodes("/root"); foreach(XmlNode _Xnode in _Nodelist) { XmlNode _data = _Xnode.SelectSingleNode("data"); XmlNodeList _CommentNodes = _data.SelectNodes("comment"); if(_CommentNodes != null) { foreach(XmlNode node in _CommentNodes) { XmlNode _comment = node.SelectSingleNode("comment"); { string _font = _comment["Font"].InnerText; //it throws the error here string _Date = _comment["DateStamp"].InnerText; string _Comment = _comment["Comment"].InnerText; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)