IDE: VS 2010, winforms,
I have a xml string
string xmlstr = "<string xmlns="http://example.com/proj1">True|Success</string>";
I am trying to select the <string>
node to get its InnerText
for subsequent parsing:
True|Success
using below code:
XmlDocument xdoc = new XmlDocument();
xdoc.LoadXml(xmlstr);
string message = xdoc.SelectSingleNode("string").InnerText; //Here getting null Execption error.
can you tell me how to select this message from xml?