avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/sax JaxpParser.java
Date Fri, 15 Nov 2002 12:43:31 GMT
cziegeler    2002/11/15 04:43:31

  Modified:    xmlutil/src/java/org/apache/excalibur/xml/sax
                        JaxpParser.java
  Log:
  Adding extra check for LexicalHandler
  
  Revision  Changes    Path
  1.5       +7 -1      jakarta-avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/sax/JaxpParser.java
  
  Index: JaxpParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/sax/JaxpParser.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JaxpParser.java	12 Nov 2002 23:35:34 -0000	1.4
  +++ JaxpParser.java	15 Nov 2002 12:43:31 -0000	1.5
  @@ -187,6 +187,12 @@
   
           try
           {
  +            if ( null == lexicalHandler 
  +                 && contentHandler instanceof LexicalHandler)
  +            {
  +                tmpReader.setProperty( "http://xml.org/sax/properties/lexical-handler",
  +                                       (LexicalHandler)contentHandler );
  +            }   
               if( null != lexicalHandler )
               {
                   tmpReader.setProperty( "http://xml.org/sax/properties/lexical-handler",
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message