bloritsch 2002/12/26 23:29:11 Modified: xmlutil/src/java/org/apache/avalon/excalibur/xml JaxpParser.java Log: Apply fix from Dims or JAXP Parser Revision Changes Path 1.9 +9 -1 jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/JaxpParser.java Index: JaxpParser.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/JaxpParser.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- JaxpParser.java 7 Nov 2002 04:38:32 -0000 1.8 +++ JaxpParser.java 27 Dec 2002 07:29:11 -0000 1.9 @@ -257,6 +257,8 @@ "SAX2 driver does not support property: " + "'http://xml.org/sax/properties/lexical-handler'"; getLogger().warn( message ); + + lexicalHandler = null; } tmpReader.setErrorHandler( this ); @@ -272,6 +274,12 @@ if( m_reuseParsers ) { m_reader = tmpReader; + // Reset the Lexical Handler to null, so that we can reuse the parser + + if(lexicalHandler != null) + { + tmpReader.setProperty("http://xml.org/sax/properties/lexical-handler", null); + } } }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>