Re: sequentially writing XMLDocument

robert burrell donkin <[email protected]> Sun, 20 Jun 2004 18:42:17 +0100
Newsgroups gmane.comp.jakarta.ecs.user
Message-ID <[email protected]>
hi peter

ECS XMLDocument is a document object model (small dom not large DOM) 
based technology. a common problem with this kind of technology is that 
it's difficult to write out a document sequentially. essentially, you 
have to create the entire document before it can be written out.

the way i'd approach this problem would be to use direct calls to a SAX 
interface. i don't know of any product out there that provides a 
convenient java wrapper but this kind of thing is really pretty easy to 
do. you use the SAX events produced to either feed an XSLT engine or 
use a SAX-to-stream writer to push the output straight out of the pipe.

- robert

On 18 Jun 2004, at 07:31, Peter Felix wrote:

> Hi
>
> I want to generate big xml files. Is there a possibility to write the
> XMLDocument sequentially. For example after a call of addElement(). 
> Because
> otherwise I have to hold the hole xml object in memory.
>
> Thanks
> Peter
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.707 / Virus Database: 463 - Release Date: 15.06.2004
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>