Trovit/src/main/java/org/openestate/io/trovit/TrovitDocument.java
public static TrovitDocument newDocument(Trovit trovit) throws ParserConfigurationException, JAXBException {
        Document document = XmlUtils.newDocument();
        TrovitUtils.createMarshaller("UTF-8", true).marshal(trovit, document);
        return new TrovitDocument(document);
    }
public static TrovitDocument newDocument(Trovit trovit) throws ParserConfigurationException, JAXBException {
        Document document = XmlUtils.newDocument();
        TrovitUtils.createMarshaller("UTF-8", true).marshal(trovit, document);
        return new TrovitDocument(document);
    }
public static TrovitDocument newDocument ( Trovit trovit ) throws ParserConfigurationException , JAXBException { Document document = XmlUtils . newDocument ( ) ; TrovitUtils . createMarshaller ( "UTF-8" , true ) . marshal ( trovit , document ) ; return new TrovitDocument ( document ) ; }
Creates a {@link TrovitDocument} from a {@link Trovit} object.

@param trovit Java object, that represents the &lt;trovit&gt; root element
@return created document
@throws ParserConfigurationException if the parser is not properly configured
@throws JAXBException                if a problem with JAXB occurred
Creates a { @link TrovitDocument } from a { @link Trovit } object .