/** * Create a new empty document. * * @return a new empty document */ public static Document newEmptyDocument() { return newDocumentBuilder().newDocument(); }
/** * Create a new empty document. * * @return a new empty document */ public static Document newEmptyDocument() { return newDocumentBuilder().newDocument(); }
/** * Parses the given InputSource into a Document. */ private Document parseInputSource(InputSource s) throws JspException { try { DocumentBuilder db = XmlUtil.newDocumentBuilder(); db.setEntityResolver(entityResolver); return db.parse(s); } catch (SAXException e) { throw new JspException(e); } catch (IOException e) { throw new JspException(e); } }
/** * Parses the given InputSource into a Document. */ private Document parseInputSource(InputSource s) throws JspException { try { DocumentBuilder db = XmlUtil.newDocumentBuilder(); db.setEntityResolver(entityResolver); return db.parse(s); } catch (SAXException e) { throw new JspException(e); } catch (IOException e) { throw new JspException(e); } }