Hi,
    Why might the method:
 
    public static Document parse(final InputStream in) throws IOException, SAXException {
        final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        try {
            return dbf.newDocumentBuilder().parse(in);
        } catch (ParserConfigurationException ex) {
            throw new RuntimeException("Error initialising parser", ex);
        }
    }
 
exception:
 
org.xml.sax.SAXParseException: Premature end of file.
 at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
 at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
 at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
 
throw the said exception please? What does it infer? I am parsing a Tomcat server.xml file, so I am assuming it is valid, well formed XML. Any thoughts please?
 
thanks and rgds
 
Paul.