how to generate xml file using libxml2 in c++?

274 views Asked by At

I want to have following xml file:

<?xml version="1.0" encoding="UTF8" ?>
<!DOCTYPE people SYSTEM "XMLSpyDTD.dtd">
<report>
    <Start>
        <date format="ddMMyy" val="Tue Jun 09 2015&#x0A;" />
        <time format="hhmm" val="11:43:06 " />
    </Start>
    <test name="Testadd" executed="Yes">
        <discription>
            <![CDATA[Add two numbers]]>
        </discription>
        <targets>
            <target threaded="false">C++</target>
        </targets>
    </test>
</report>

So, kindly suggest me how may i generate it using libxml2 in c++?

0

There are 0 answers