Another common question is how one gets a
string representation of a given DOM object.
Here's a method that returns the string representation of a given org.w3c.dom.Node object (usually an instance of org.w3c.dom.Element or org.w3c.dom.Document):
XmlFaq CategoryCodeSamples