File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
XML and Related Technologies
Converting Document Object to String
Joined: Nov 12, 2001
Oct 07, 2002 10:16:00
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
. Thanks in advance!
Joined: Jul 09, 2001
Oct 07, 2002 10:27:00
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Converting Document Object to String
String to DOM
can SAX or DOM parse only an XML string at a time?
How to convert a String to Element, and add to an existing Document obj?
String from Document
XML to String
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015