Catharina,
I needed the same feature, but for different reasons.
Our project records user entered data in XML files. We have a requirement
to minimize any loss of user entered data due to program crash, power
outage, whatever.
The implementation was to *APPEND* nodes to the DOM tree as the use
L PROTECTED]>
cc: (bcc: Catharina Ibrahim/EHV/TASS/PHILIPS)
Subject: RE: is it possible to append instead of rewrite entire XML file output?
Classification:
Well your program doesn't seem to need the actual XML functionality but
rather a log. Why
d you are
then ready to parse it anyway you like.
Just a suggestion...
/ Erik
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: den 17 januari 2003 08:42
To: [EMAIL PROTECTED]
Subject: Re: is it possible to append instead of rewrite entire XML file
output?
H
)
Subject: Re: is it possible to append instead of rewrite entire XML file output?
Classification:
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
e 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 entir
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 "repo
I'm using a modified version of the code in the DOMPrint example to write
the contents of the DOM tree to a file. The file output seems to be too
slow. Before I finish writing one segment of data the next segment of data
starts and overwrites the previous segment. Any ideas?
___