How can i edit(extend) existing XML file using XMLlite

Hello,

I want new to XML.I want to edit an existing .xml file at run time.In my vc++ console application i have used 'XMLlite' to write/read the xml report.

Now i want to extend the information in specific root ...Like



Original:-

<DIJESH>

<Book>
<Date>Today
<Name>Book one</Name>
<Name>Book two</Name>
</Date>
</Book>
</DIJESH>



After Modificaton:-



<DIJESH>

<Book>
<Date>Today
<Name>Book one</Name>
<Name>Book two</Name>

<Name>Book Three</Name>
</Date>
</Book>
</DIJESH>



How can i add new info under the specific root using 'XMLLite'.

If there is any other External library providing the XML editng function.Need Help.



Thanks and Regards ,

Dijesh
[1211 byte] By [dijesh.kunimal] at [2007-11-20 10:53:54]
# 1 Re: How can i edit(extend) existing XML file using XMLlite
From the way you have it, just use the Read function, and copy the output that you receive.

Once you receive NULL from the Read function, tack on a element using WriteStartElement, or WriteElementString. Then finish off with a WriteEndDocument().

http://msdn2.microsoft.com/en-us/library/ms752837.aspx
http://msdn2.microsoft.com/en-us/library/ms752819.aspx
jkmyoung at 2007-11-10 3:26:42 >