[fpc-pascal] How to save a huge XML?
Marcos Douglas
md at delfire.net
Tue Jun 18 22:13:14 CEST 2013
On Tue, Jun 18, 2013 at 4:37 PM, Zaher Dirkey <parmaja at gmail.com> wrote:
>
> On Tue, Jun 18, 2013 at 7:59 PM, Marcos Douglas <md at delfire.net> wrote:
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <root>
>> <connection login="uref" database="DB_REF"/>
>> <start dh="2013-06-18T13:54:57"/>
>> <line idDoc="912" status="ok"/>
>> <line idDoc="913" status="ok"/>
>> <line idDoc="914" status="ok"/>
>> <line...>
>> <finish dh="2013-06-18T13:54:58"/>
>> </root>
>
>
> What about when opening first time the file, write head lines
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <root>
> <connection login="uref" database="DB_REF"/>
> <start dh="2013-06-18T13:54:57"/>
>
> then when every log you write (simple with format function)
> <line idDoc="xxx" status="xxx"/>
>
> And when finish it write the footer
>
>
> <finish dh="2013-06-18T13:54:58"/>
> </root>
>
> I mean writing directly to the file without put it in DOM or any kind of
> document in the memory.
Yes. That was Antonio Fortuny and Michael Van Canneyt said at the
first time. ;-)
Marcos Douglas
More information about the fpc-pascal
mailing list