You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by vg...@apache.org on 2006/08/26 02:20:30 UTC
svn commit: r437037 - in /excalibur/trunk/components/xmlutil: pom.xml
src/java/org/apache/excalibur/xml/impl/JaxpParser.java
Author: vgritsenko
Date: Fri Aug 25 17:20:28 2006
New Revision: 437037
URL: http://svn.apache.org/viewvc?rev=437037&view=rev
Log:
reset lexical handler (and content handler) before reusing the parser.
Modified:
excalibur/trunk/components/xmlutil/pom.xml (contents, props changed)
excalibur/trunk/components/xmlutil/src/java/org/apache/excalibur/xml/impl/JaxpParser.java
Modified: excalibur/trunk/components/xmlutil/pom.xml
URL: http://svn.apache.org/viewvc/excalibur/trunk/components/xmlutil/pom.xml?rev=437037&r1=437036&r2=437037&view=diff
==============================================================================
--- excalibur/trunk/components/xmlutil/pom.xml (original)
+++ excalibur/trunk/components/xmlutil/pom.xml Fri Aug 25 17:20:28 2006
@@ -18,9 +18,9 @@
under the License.
-->
<!--+
- | @version $Id$
- |
- +-->
+ | @version $Id$
+ |
+ +-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.apache.excalibur.components</groupId>
Propchange: excalibur/trunk/components/xmlutil/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: excalibur/trunk/components/xmlutil/pom.xml
------------------------------------------------------------------------------
svn:keywords = Id
Modified: excalibur/trunk/components/xmlutil/src/java/org/apache/excalibur/xml/impl/JaxpParser.java
URL: http://svn.apache.org/viewvc/excalibur/trunk/components/xmlutil/src/java/org/apache/excalibur/xml/impl/JaxpParser.java?rev=437037&r1=437036&r2=437037&view=diff
==============================================================================
--- excalibur/trunk/components/xmlutil/src/java/org/apache/excalibur/xml/impl/JaxpParser.java (original)
+++ excalibur/trunk/components/xmlutil/src/java/org/apache/excalibur/xml/impl/JaxpParser.java Fri Aug 25 17:20:28 2006
@@ -317,6 +317,17 @@
// Here, parsing was successful : restore reader
if( m_reuseParsers )
{
+ try
+ {
+ tmpReader.setProperty( "http://xml.org/sax/properties/lexical-handler",
+ null );
+ }
+ catch( final SAXException e )
+ {
+ // Already Logged
+ }
+ tmpReader.setContentHandler( null );
+
m_reader = tmpReader;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org