ImmoXML/src/main/java/org/openestate/io/immoxml/ImmoXmlUtils.java
public static ImmoXmlDocument createDocument(Document doc) {
        if (ImmoXmlDocument.isReadable(doc))
            return new ImmoXmlDocument(doc);
        else
            return null;
    }
public static ImmoXmlDocument createDocument(Document doc) {
        if (ImmoXmlDocument.isReadable(doc))
            return new ImmoXmlDocument(doc);
        else
            return null;
    }
public static ImmoXmlDocument createDocument ( Document doc ) { if ( ImmoXmlDocument . isReadable ( doc ) ) return new ImmoXmlDocument ( doc ) ; else return null ; }
Creates a {@link ImmoXmlDocument} from a {@link Document}.

@param doc XML document
@return created document or null, of the document is not supported by this format
Creates a { @link ImmoXmlDocument } from a { @link Document } .