I am trying to do this as well! One possible way is to use the FilterXmlObject to act as a proxy nod ein the DOM tree. When it's save(OutputStream) method is invoked, you can pipe input read from an external file into the output stream, close the external file, continue writing DOM nodes to the stream... However, no-one knows how to insert a FilterXmlObject into the XMLBeans DOM tree. I've tried everything I can think of but there's just no good way of getting that sucker in there! If you figure this out... please post back to the list. There are a ton of people interested. cory
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 05, 2007 2:15 AM To: user@xmlbeans.apache.org Subject: Writing big files As I understand, the only way of writing an xml file is filling a document object with data and then saving it. However, if one wishes to write a big file one encounters memory related problems. Is there a way to write the document incrementally?