Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
XMLDocument reading CDATA and Commnets
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Smart Lucky
13y
3.4k
1
Reply
Hi
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);
}
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Siverlight Status bar control
Silver light Navigation Browser back button