On Tue, Jun 18, 2013 at 4:37 PM, Zaher Dirkey <parm...@gmail.com> wrote: > > On Tue, Jun 18, 2013 at 7:59 PM, Marcos Douglas <m...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal