[fpc-pascal] How to save a huge XML?

Michael Van Canneyt michael at freepascal.org
Tue Jun 18 15:44:51 CEST 2013



On Tue, 18 Jun 2013, Marcos Douglas wrote:

>> No. The writer already uses a fixed buffer. Your problem is the use of
>> TXMLDocument.
>
> Ideas? Maybe do what Antonio Fortuny said before?
>
>>
>> Simply put: logging to XML (worse: using DOM) is a VERY bad idea.
>
> Well, this is a request of my client. Other process will read this XML.

Under no circumstances should you use TXMLDocument for this.

Better write the XML manually then: 'fire and forget'.

Michael.



More information about the fpc-pascal mailing list