[Last Call] Learn how to a build a cloud-first strategyRegister Now


ammeding xml file

Posted on 2004-12-01
Medium Priority
Last Modified: 2010-04-24
Hello all

I have an  xml file which I would like to ammed. Is there such a function in c++? I have only seem xml writer which creates the xml file. What I want to do is look for a key and ammend the value that is in there.

Question by:richjo100
1 Comment
LVL 19

Accepted Solution

drichards earned 280 total points
ID: 12726634
If you are looking at XmlWriter, then you must be doing managed C++?  If so, you need System.Xml.XmlDocument.  It can load XML files, manipulate the document, and then save the file back out.  The docs are here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXmlDocumentClassTopic.asp.

Specifically, you'll want to look at the Load, Save, SelectNodes, SelectSingleNode, and ReplaceChild methods.

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question