Hello Catharina!

Perhaps here comes SAX in. In my opinion, though I'm not an expert, too, you
can use the XMLFormatter interface to write the XML output (at least it does
the character conversion XML needs. The advantage is that there is no need
to hold the complete DOM tree in memory, since you write it part by part to
the output file. See the SAXPrint sample for further information.

Oliver

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 4:31 PM
Subject: is it possible to append instead of rewrite entire XML file output?


> Hi, I am meant to do checking on a huge number of objects in this manner:
> 1. Check object#1
> 2. Wraps report on object#1 as XML element
> 3. Write reportElement#1 to "report.xml" file
> 4. destroy object#1
> 5. Check object#2
> 6. Wraps report on object#2 as XML element
> 7. Append reportElement#2 to "report.xml" file
> 8. destroy object#2
> ....
>
> Using DOM, it seems to me that DOMWriter works by constructing the whole
> DOM tree first, parse it, and write it out to the file. But I cannot
> afford creating the whole DOM tree first since it is so huge.
>
> Is it possible to do this 'appending' or must I create a way around it?
> Tried to look at the milis archives but didn't find any info on this. Or
> maybe my eyes just missed it.. (sorry in that case)
>
> I'm new to this thingy; can really do all help :)
>
> thx a lot!
> cath


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to