OpenImmo/src/main/java/org/openestate/io/openimmo/OpenImmoUtils.java
public static OpenImmoDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException {
        return createDocument(XmlUtils.newDocument(input, true));
    }
public static OpenImmoDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException {
        return createDocument(XmlUtils.newDocument(input, true));
    }
Creates a {@link OpenImmoDocument} from an {@link InputStream}.

@param input XML input
@return created document or null, of the document is not supported by this format
@throws SAXException                 if XML is invalid
@throws IOException                  if reading failed
@throws ParserConfigurationException if the parser is not properly configured