Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert GWT xml.client.Document to XML string

Tags:

java

dom

xml

gwt

I have a com.google.gwt.xml.client.Document object I used XMLParser.parse(...) to create. I would like to serialize it back to the XML string from which it was derived. What is the easiest way to do this? I don't see a straightforward way from reading the Javadocs on this and related classes.

Any help is appreciated, thanks.

-tjw

like image 728
Travis Webb Avatar asked Jan 29 '26 05:01

Travis Webb


1 Answers

Easiest way:

document.toString();
like image 93
Chris Lercher Avatar answered Jan 31 '26 19:01

Chris Lercher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!