List of usage examples for org.dom4j.tree DefaultDocument asXML
public String asXML()
From source file:nl.nn.adapterframework.util.XmlUtils.java
License:Apache License
public static String getAdapterSite(Object document) throws DomBuilderException, IOException, TransformerException { String input;/*from ww w . j a v a 2s.c o m*/ if (document instanceof DefaultDocument) { DefaultDocument defaultDocument = (DefaultDocument) document; input = defaultDocument.asXML(); } else { input = document.toString(); } return getAdapterSite(input, null); }