File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Converting Document Object to String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Converting Document Object to String" Watch "Converting Document Object to String" New topic

Converting Document Object to String

Sanjit Singh

Joined: Nov 12, 2001
Posts: 27
I have a Document object that contains the contents of an XML document. Is it possible to get the whole XML document as a "string" from this document object?
I would be interested in storing the whole XML document as a string. Thanks in advance!
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1167
Please search for 'serialize xml' on the site.

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
wood burning stoves
subject: Converting Document Object to String
Similar Threads
String to DOM
How to convert a String to Element, and add to an existing Document obj?
can SAX or DOM parse only an XML string at a time?
XML to String
String from Document