As I want to add data onto a well-formed XML file (for e.g. Guestbook), how do I do that ?
The XMLWriter ala:www.learnasp.com/freebook/learn/xmltextwriter.aspxwill help you make well formed output.you can read it with XMLTextreader or DOM and then write it plus new data into guestbook.