can i read CDATA in This way ....................?
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("~/App_Data/XMLFile.xml"));
XmlNodeList listnode = doc.GetElementsByTagName("book");
foreach (XmlNode node in listnode)
{
if (node is XmlCDataSection)
{
Response.Write("CDATA i s"+node.innerText);
}
}
And
Can i read Commnets in this way.................?
foreach (XmlNode node in listnode)
{
if (node is XmlComment)
{
Response.Write("Commnets are"+node.InnerText);
}
}


VulpesRank #55 · 29.2K reputationPosted Aug 11, 2011, 2:42 AM EDT
However, using the example I gave in your other thread on this topic, you can get them like this: