i'm trying to serialize a DOM document to a String.  It seems that
there's a limit on the size of the Document that it can serialize
before running out memory.

Here's the code i'm using to serialize and i'm wondering if there's a
better way to do this:

Document document = /* this is my dom document */
Writer xmlString = new StringWriter();
OutputFormat format = new OutputFormat(document);
format.setIndenting(false);
XMLSerializer ser = new XMLSerializer(xmlString, format);
serializer.asDOMSerializer();
// this next line is where my JVM borks
serializer.serialize(document);

the size of the XML file itself, is roughly 307k (about 13,000 lines)

thanks

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

Reply via email to