This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design 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: 1183
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.
I agree. Here's the link:
subject: Converting Document Object to String
It's not a secret anymore!