Example usage for org.dom4j.tree DefaultDocument asXML

List of usage examples for org.dom4j.tree DefaultDocument asXML

Introduction

In this page you can find the example usage for org.dom4j.tree DefaultDocument asXML.

Prototype

public String asXML() 

Source Link

Usage

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);
}