public static Document newDocument(InputSource xmlSource) throws SAXException, IOException, ParserConfigurationException {
        return XmlUtils.newDocument(xmlSource, true);
    }
public static Document newDocument ( InputSource xmlSource ) throws SAXException , IOException , ParserConfigurationException { return XmlUtils . newDocument ( xmlSource , true ) ; }
Create a {@link Document} from an {@link InputSource}.

@param xmlSource the XML input, the document is created from
@return created document
@throws SAXException                 if XML contains an error
@throws IOException                  if XML is not readable
@throws ParserConfigurationException if the parser is not properly configured