- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsThe code below works if I want to modify the information inside the tag, but how do I modify the CDATA for what looks to be an attribute?
I want to modify "DocInfo" CDATA, but can't seem to find the correct expression to place into SelectSingleNode function.
(see below code and sample input xml.)
using System.Xml;
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(xmlfilepath);
xmldoc.SelectSingleNode("D
<?xml version="1.0" encoding="utf-8" ?>
<Document>
<DocumentName><![CDATA[]]>
<IndexCollection>
<Index columnname="DocInfo"><
Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: TheLearnedOnePosted on 2009-10-23 at 07:14:47ID: 25644637
Try something like this:
Select allOpen in new window