multiple attributes 2003-01-30 - By Peter Vanopulos
Thanks Vasanth :)
-----Original Message----- From: Soosai, Lourdhu Vasanth [mailto:LourdhuV@(protected)] Sent: Thursday, 30 January 2003 9:46 PM To: 'xerces-j-user@(protected)' Subject: RE: multiple attributes
use serializer.
public static String getXmlString(Document d) { try { OutputFormat format = new OutputFormat(d); strResponse = new StringWriter(); XMLSerializer serial = new XMLSerializer( strResponse, format ); serial.asDOMSerializer(); serial.serialize(d.getDocumentElement()); } catch (Exception e) {
Logger.log("Problem occured while converting DOM to String " + e.getMessage(),Logger.ERROR);
}
return strResponse.toString();
cheers vasanth
-----Original Message----- From: Peter Vanopulos [mailto:peter.vanopulos@(protected)] Sent: Thursday, January 30, 2003 4:13 AM 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)
This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna
--------------------------------------------------------------------- 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)
|
|