Hi,
How can I decode data in an XML string Like when I get something like > or < in the raw strings, I would like to read or store them as > or < in my application.
Regards
Kiran Kumar Pinjala.
Hi,
How can I decode data in an XML string Like when I get something like > or < in the raw strings, I would like to read or store them as > or < in my application.
Regards
Kiran Kumar Pinjala.
XML
DattaK
Todd Biggs - Windows Live
Have you tried the Value property
DalekDAW
When you have a node with test and childnodes you need to iterate through the nodes childs and find its Text node. Here is a sample code that will do just that.
XmlNode node = doc.SelectSingleNode("/root");foreach (XmlNode nodetest in node.ChildNodes)
{
if (XmlNodeType.Text == nodetest.NodeType)
{
System.Diagnostics.Debug.WriteLine(nodetest.Value);
break;
}
}
Jessica Alba
Thanks Andreas, I was using InnerXML and this did not decode the data, So, i switched to InnerText and this did decode the data. The only thing that worries me is when I have children, then InnerText will return me a concatenated string of all the children, that I have.
toniSQL