This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Converting Document to String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


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

Converting Document to String

Steve Watson
Ranch Hand

Joined: Apr 08, 2003
Posts: 38
How can I convert a Dom Document to a String?
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Here is the code:

The full working example can be found at http://bobcat.webappcabaret.net/javachina/faq/xml_java_01.htm#jaxp_dom_Q35
 
Consider Paul's rocket mass heater.
 
subject: Converting Document to String