xmlParser.redirectEntity("javaee_web_services_client_1_2.xsd",webservice12xsd); xmlParser.redirectEntity("http:
    public static XmlParser webXmlParser()    {        XmlParser xmlParser=new XmlParser();        //set up cache of DTDs and schemas locally        URL dtd22=WebAppContext.class.getResource("/javax/servlet/resources/web-app_2_2.dtd");        URL dtd23=WebAppContext.class.getResource("/javax/servlet/resources/web-app_2_3.dtd");        URL jsp20xsd=WebAppContext.class.getResource("/javax/servlet/resources/jsp_2_0.xsd");        URL jsp21xsd=WebAppContext.class.getResource("/javax/servlet/resources/jsp_2_1.xsd");        URL j2ee14xsd=WebAppContext.class.getResource("/javax/servlet/resources/j2ee_1_4.xsd");        URL webapp24xsd=WebAppContext.class.getResource("/javax/servlet/resources/web-app_2_4.xsd");        URL webapp25xsd=WebAppContext.class.getResource("/javax/servlet/resources/web-app_2_5.xsd");        URL schemadtd=WebAppContext.class.getResource("/javax/servlet/resources/XMLSchema.dtd");        URL xmlxsd=WebAppContext.class.getResource("/javax/servlet/resources/xml.xsd");        URL webservice11xsd=WebAppContext.class.getResource("/javax/servlet/resources/j2ee_web_services_client_1_1.xsd");        URL datatypesdtd=WebAppContext.class.getResource("/javax/servlet/resources/datatypes.dtd");        xmlParser.redirectEntity("web-app_2_2.dtd",dtd22);        xmlParser.redirectEntity("-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN",dtd22);        xmlParser.redirectEntity("web.dtd",dtd23);        xmlParser.redirectEntity("web-app_2_3.dtd",dtd23);        xmlParser.redirectEntity("-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN",dtd23);        xmlParser.redirectEntity("XMLSchema.dtd",schemadtd);        xmlParser.redirectEntity("http://www.w3.org/2001/XMLSchema.dtd",schemadtd);        xmlParser.redirectEntity("-//W3C//DTD XMLSCHEMA 200102//EN",schemadtd);        xmlParser.redirectEntity("jsp_2_0.xsd",jsp20xsd);        xmlParser.redirectEntity("http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd",jsp20xsd);        xmlParser.redirectEntity("jsp_2_1.xsd",jsp21xsd);        xmlParser.redirectEntity("http://java.sun.com/xml/ns/j2ee/jsp_2_1.xsd",jsp21xsd);        xmlParser.redirectEntity("j2ee_1_4.xsd",j2ee14xsd);        xmlParser.redirectEntity("http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd",j2ee14xsd);        xmlParser.redirectEntity("web-app_2_4.xsd",webapp24xsd);        xmlParser.redirectEntity("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd",webapp24xsd);        xmlParser.redirectEntity("web-app_2_5.xsd",webapp25xsd);        xmlParser.redirectEntity("http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd",webapp25xsd);        xmlParser.redirectEntity("xml.xsd",xmlxsd);        xmlParser.redirectEntity("http://www.w3.org/2001/xml.xsd",xmlxsd);        xmlParser.redirectEntity("datatypes.dtd",datatypesdtd);        xmlParser.redirectEntity("http://www.w3.org/2001/datatypes.dtd",datatypesdtd);        xmlParser.redirectEntity("j2ee_web_services_client_1_1.xsd",webservice11xsd);        xmlParser.redirectEntity("http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd",webservice11xsd);        return xmlParser;    }