Hey,

Take a look at the samples. In DOMPrint, the document is saved by writing it to a file as its being parsed. You could output modifications at that point.

Gareth


On 13 Jul 2004, at 10:35, jh_Zzz wrote:

If use SAX, how could I modify and save the document?
----- Original Message -----
 From: jh_Zzz
To: [EMAIL PROTECTED]
Sent: Tuesday, July 13, 2004 11:55 AM
Subject: A question about DOM

Hi There,
 
I am using xerces to parse a XML document and return a DomDocument object, my question is:
 
When the xml document is about only several nodes, there is no problem, but after I add some data, the application will use about 15M memory. (xml document is about 2M at this moment).
 
How to solve this type problem, split the xml files to more files? but this will cause hard to query. 
 
Thansk fro your great help
Jack


--
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184                  http://www.parthcomp.com


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



Reply via email to