You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2002/02/18 00:46:15 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/parsers AbstractSAXParser.java SAXParser.java

andyc       02/02/17 15:46:15

  Modified:    java/src/org/apache/xerces/parsers AbstractSAXParser.java
                        SAXParser.java
  Log:
  Fixed some problems in the SAX parsers that assumed that all
  parser configurations used with the parser class had certain
  features and/or properties.
  
  Revision  Changes    Path
  1.24      +7 -2      xml-xerces/java/src/org/apache/xerces/parsers/AbstractSAXParser.java
  
  Index: AbstractSAXParser.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/AbstractSAXParser.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- AbstractSAXParser.java	17 Feb 2002 06:02:47 -0000	1.23
  +++ AbstractSAXParser.java	17 Feb 2002 23:46:15 -0000	1.24
  @@ -111,7 +111,7 @@
    * @author Arnaud Le Hors, IBM
    * @author Andy Clark, IBM
    *
  - * @version $Id: AbstractSAXParser.java,v 1.23 2002/02/17 06:02:47 andyc Exp $
  + * @version $Id: AbstractSAXParser.java,v 1.24 2002/02/17 23:46:15 andyc Exp $
    */
   public abstract class AbstractSAXParser
       extends AbstractXMLDocumentParser
  @@ -1876,7 +1876,12 @@
           // features
           fNamespaces = fConfiguration.getFeature(NAMESPACES);           
           fNamespacePrefixes = fConfiguration.getFeature(NAMESPACE_PREFIXES);
  -        fNormalizeData = fConfiguration.getFeature(NORMALIZE_DATA);
  +        try {
  +            fNormalizeData = fConfiguration.getFeature(NORMALIZE_DATA);
  +        }
  +        catch (XMLConfigurationException e) {
  +            fNormalizeData = false;
  +        }
           
       } // reset()
   
  
  
  
  1.30      +2 -2      xml-xerces/java/src/org/apache/xerces/parsers/SAXParser.java
  
  Index: SAXParser.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/SAXParser.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- SAXParser.java	21 Jan 2002 20:17:08 -0000	1.29
  +++ SAXParser.java	17 Feb 2002 23:46:15 -0000	1.30
  @@ -71,7 +71,7 @@
    * @author Arnaud  Le Hors, IBM
    * @author Andy Clark, IBM
    *
  - * @version $Id: SAXParser.java,v 1.29 2002/01/21 20:17:08 elena Exp $ 
  + * @version $Id: SAXParser.java,v 1.30 2002/02/17 23:46:15 andyc Exp $ 
    */
   public class SAXParser
       extends AbstractSAXParser {
  @@ -96,7 +96,7 @@
               "org.apache.xerces.xni.parser.XMLParserConfiguration",
               "org.apache.xerces.parsers.StandardParserConfiguration"
               ));
  -
  +        fConfiguration.addRecognizedFeatures(new String[] {NOTIFY_BUILTIN_REFS});
           fConfiguration.setFeature(NOTIFY_BUILTIN_REFS, true);
       } // <init>()
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org