Serialize XML - adding on an existing xml file!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

I had this tutorial from Microsoft site:

http://support.microsoft.com/default.aspx?scid=kb;en-us;815813

I had 1 question.

Just say i already serialize a xml file. But next time, i want to add on to the xml file, under the particular xml node.

How can i do that? I do not want to overwrite anything? Just add in the xml tags.

Just say i had 100 records, i add on another 100, it will become 200 records in the xml file.

Any tips for me please? Thanks.
 
Having the condition that you don't want to overwrite anything it's obvious,
that under the assumption that what you have in the file is a wellformed XML
document, this is not feasible.


Best regards,

Henrik Dahl

Chua Wen Ching said:
Hi there,

I had this tutorial from Microsoft site:

http://support.microsoft.com/default.aspx?scid=kb;en-us;815813

I had 1 question.

Just say i already serialize a xml file. But next time, i want to add on
to the xml file, under the particular xml node.
 
Hi Henrik Dahl,

Oops. I mean i prefer to append the new xml elements into the existing one, and not overwritting the whole document with the new tags.

Thanks.
--
Regards,
Chua Wen Ching :)


Henrik Dahl said:
Having the condition that you don't want to overwrite anything it's obvious,
that under the assumption that what you have in the file is a wellformed XML
document, this is not feasible.


Best regards,

Henrik Dahl

Chua Wen Ching said:
Hi there,

I had this tutorial from Microsoft site:

http://support.microsoft.com/default.aspx?scid=kb;en-us;815813

I had 1 question.

Just say i already serialize a xml file. But next time, i want to add on
to the xml file, under the particular xml node.
 
You may just seek to just before the end tag of the document element and
then write your stuff and then a new end tag. Please observe that doing such
stuff is basically a matter of doing some lower abstraction level things so
you're a bit on your own, i.e. not backed up by any higher order XML related
tools.


Best regards,

Henrik Dahl

Chua Wen Ching said:
Hi Henrik Dahl,

Oops. I mean i prefer to append the new xml elements into the existing
one, and not overwritting the whole document with the new tags.
 
Back
Top