The specified stream is closed after this method returns.
@param in the input stream from which to read the XML document.
@throws IOException if reading from the specified input streamresults in an IOException.
@throws InvalidPropertiesFormatException Data on input stream does notconstitute a valid XML document with the mandated document type.
@throws NullPointerException if
in is null.