ammeding xml file

Posted on 2004-12-01
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

    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:

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

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    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++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now