Re: Problem appending a new element to xml file...
- From: "Marc Gravell" <marc.gravell@xxxxxxxxx>
- Date: 16 Nov 2006 15:54:11 -0800
Glad to help - any problems, be sure to get back...
For completeness: your original code touched on XmlWriter; this is
typically used *instead of* the XmlDocument model in those scenarios
where XmlDocument is too heavy - just as very large xml fragments; with
XmlWriter you could write a 500Mb file from a database by writing one
row at a time directly to hte stream; with the XmlDocument you would
need to hold it all in memory first, probably taking about 4-times
that, so 2Gb (better hope for Win64 memory addressing!).
XmlDocument, however, uses the "all in memory" model to provide
services such as XPath/XQuery, and simple element manipulation. There
are other differences, but that is the general principle; for
small-to-mid-size xml, XmlDocument is a reasonable choice.
Marc
.
- Follow-Ups:
- Re: Problem appending a new element to xml file...
- From: sherifffruitfly
- Re: Problem appending a new element to xml file...
- References:
- Problem appending a new element to xml file...
- From: sherifffruitfly
- Re: Problem appending a new element to xml file...
- From: Marc Gravell
- Re: Problem appending a new element to xml file...
- From: sherifffruitfly
- Problem appending a new element to xml file...
- Prev by Date: Re: OleDb DataFactory bug. Watch out.
- Next by Date: Re: OleDb DataFactory bug. Watch out.
- Previous by thread: Re: Problem appending a new element to xml file...
- Next by thread: Re: Problem appending a new element to xml file...
- Index(es):
Relevant Pages
|