I have an object of type
com.sun.org.apache.xerces.internal.dom.DeferredElementImpl
containing an XML root element and structure beneath.
How can I retrieve the XML contents as a string from this?
Note that method toString()
is available, but this has been implemented in a very rudimentary way, only reporting strings like [root: null]
, hence only showing the root element name and not any further contents of this element.
In the javadoc this method is listed as "NON-DOM method for debugging convenience".