excalibur-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r437037 - in /excalibur/trunk/components/xmlutil: pom.xml src/java/org/apache/excalibur/xml/impl/JaxpParser.java
Date Sat, 26 Aug 2006 00:20:30 GMT
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


Mime
View raw message