How to get the Document.toString object back to Docuement?
Hello,
I trasnform an document to a string by toString method, but I need the string back to the Doucument. here is the code, say I have Document object(already built), doc,
System.out.println(doc.toString() ), it print out: org.apache.crimson.tree.XmlDocument@76a746,
How can I get the xml Document back?
The reason I do so is that I need store over 6000 Document objects into a Vector, but it will out of memory if directly store the objects, but no problem store with the toString(). Using StringWriter to
transform doucment to a string with xml format is also get out of memory error.
any one can help, thanks!!
Fred

