public static XMLReader newXMLReader ( JstlEntityResolver entityResolver ) throws ParserConfigurationException , SAXException { XMLReader xmlReader = SAXPARSER_FACTORY . newSAXParser ( ) . getXMLReader ( ) ; xmlReader . setEntityResolver ( entityResolver ) ; return xmlReader ; }
Create an XMLReader that resolves entities using JSTL semantics .