multiple attributes 2003-01-30 - By Jan Les
You can use DOMSerializer.
Example:
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); OutputFormat outputFormat = new OutputFormat("text", "UTF-8", false); XMLSerializer ser = new XMLSerializer(outputStream, outputFormat); DOMSerializer domSer = ser.asDOMSerializer(); domSer.serialize(document); String result = outputStream.toString();
-----Original Message----- From: Peter Vanopulos [mailto:peter.vanopulos@(protected)] Sent: Thursday, 30 January 2003 7:43 PM To: xerces-j-user@(protected) Subject: RE: multiple attributes
Hi Group,
Quick question... What is the best way to go from a Document to a String.
Thanks
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|