352046 - Need try/catch around features set in XmlParser
This commit is contained in:
parent
2028c125c1
commit
295634a369
|
@ -1,6 +1,7 @@
|
|||
jetty-7.5.0-SNAPSHOT
|
||||
+ 351516 Refactored sessions to better support nosql session managers
|
||||
+ 351576 Do not use deprecated method File.toURL()
|
||||
+ 352046 Need try/catch around features set in XmlParser
|
||||
|
||||
jetty-7.4.4.v20110707 July 7th 2011
|
||||
+ 308851 Converted all jetty-client module tests to JUnit 4
|
||||
|
|
|
@ -108,7 +108,14 @@ public class XmlParser
|
|||
_parser.getXMLReader().setFeature("http://xml.org/sax/features/validation", validating);
|
||||
_parser.getXMLReader().setFeature("http://xml.org/sax/features/namespaces", true);
|
||||
_parser.getXMLReader().setFeature("http://xml.org/sax/features/namespace-prefixes", false);
|
||||
_parser.getXMLReader().setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", validating);
|
||||
try
|
||||
{
|
||||
_parser.getXMLReader().setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", validating);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.warn(Log.EXCEPTION, e);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue