ImmoXML/src/main/java/org/openestate/io/immoxml/ImmoXmlDocument.java
@Override
    public Immoxml toObject() throws JAXBException {
        this.upgradeToLatestVersion();
        return (Immoxml) ImmoXmlUtils.createUnmarshaller().unmarshal(this.getDocument());
    }
@Override
    public Immoxml toObject() throws JAXBException {
        this.upgradeToLatestVersion();
        return (Immoxml) ImmoXmlUtils.createUnmarshaller().unmarshal(this.getDocument());
    }
Creates a {@link Immoxml} object from the contained {@link Document}.

@return created object, that represents the &lt;immoxml&gt; root element
@throws JAXBException if a problem with JAXB occurred