Xml write with c/c++

Posted on 2006-03-27
Last Modified: 2013-11-23

Hi Experts,

i want to write a xml document using c/c++ programetically.
 i tried with EXPAT  and EXCERS-C but there is no API or sample to write the XML Documents.

is there any way to write the XML Documents using c/c++.

any sample or the APIs are greate help for me.

any help is the greate appriciation.

thanks in advance.

karunakar reddy.g
Question by:karunakarrreddy
    LVL 1

    Expert Comment


    I'm not sure which platform you are writing for.  I've only used XML from c++ in a Windows environment.  In that case I used the MSXML parser.  It is very well documented on the MSDN Library.

    Here is a link to the DOM reference:


    Author Comment

    i am using the windows platform. But  your link uses the DOM and Com Objects.
     but i want pure c++ with xml documents.
    LVL 6

    Accepted Solution

    you will need the xslt library from apache (XALAN) which has binding for writing XML files via Transformer, Result and Source interfaces.
    LVL 2

    Assisted Solution


    IBM Xerces-C++ is very good if you want valid XML DOM documents, follow the below links, have pashens you will find complext examples once if u download its source code and documentation, i did used it around 2 yrs back hence right away i cannot give you written examples but my bet is on it.


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    changePi Challenge 15 57
    Spring Controller - inheritance in request parameter 3 31
    wordcount challenge 11 49
    wordmultiple challenge 12 66
    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    755 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

    18 Experts available now in Live!

    Get 1:1 Help Now