IS24-XML/src/main/java/org/openestate/io/is24_xml/Is24XmlDocument.java
public static Is24XmlDocument newDocument(IS24ImmobilienTransfer transfer) throws ParserConfigurationException, JAXBException {
        Document document = XmlUtils.newDocument();
        Is24XmlUtils.createMarshaller("UTF-8", true).marshal(transfer, document);
        return new Is24XmlDocument(document);
    }
public static Is24XmlDocument newDocument(IS24ImmobilienTransfer transfer) throws ParserConfigurationException, JAXBException {
        Document document = XmlUtils.newDocument();
        Is24XmlUtils.createMarshaller("UTF-8", true).marshal(transfer, document);
        return new Is24XmlDocument(document);
    }
public static Is24XmlDocument newDocument ( IS24ImmobilienTransfer transfer ) throws ParserConfigurationException , JAXBException { Document document = XmlUtils . newDocument ( ) ; Is24XmlUtils . createMarshaller ( "UTF-8" , true ) . marshal ( transfer , document ) ; return new Is24XmlDocument ( document ) ; }
Creates a {@link Is24XmlDocument} from a {@link ImmobilienTransferTyp}
object.

@param transfer Java object, that represents the &lt;IS24ImmobilienTransfer&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 Is24XmlDocument } from a { @link ImmobilienTransferTyp } object .