This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Converting Document Object to String Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Converting Document Object to String" Watch "Converting Document Object to String" New topic
Author

Converting Document Object to String

Sanjit Singh
Greenhorn

Joined: Nov 12, 2001
Posts: 27
Hi,
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: 1129
Please search for 'serialize xml' on the site.
Cheers,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Converting Document Object to String
 
Similar Threads
String from Document
XML to String
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?