Cat <lo***********@yahoo.co.uk> wrote:
How do you go about appending data from a dataset to an existing xml file? I
know you can use WriteXML but this writes over any data already existing in
the specified file..
Due to the nature of XML, you *can't* append data to an existing
(valid) document and end up with a new (valid) document - there can
only be one root element, and that *must* be closed to be a valid
document.
There are various ways of approaching the problems this causes, such as
creating many XML files which are periodically merged into a single
file containing all the same data.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too