TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Smart Lucky
NA
555
640.5k
XMLDocument reading CDATA and Commnets
Aug 11 2011 5:49 AM
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);
}
}
Reply
Answers (
1
)
Siverlight Status bar control
Silver light Navigation Browser back button