neilg       2003/01/22 08:51:43

  Modified:    java/src/org/apache/xerces/parsers
                        org.apache.xerces.xni.parser.XMLParserConfiguration
                        SecurityConfiguration.java SAXParser.java
                        DOMParser.java DOMBuilderImpl.java
  Log:
  Enable XML 1.1 support by default.  Now, if the parser is presented
  with a document with the version pseudoattribute having a value
  of 1.1, it will parse it according to the XML 1.1 candidate recommendation.
  This was effected by changing the default configuration that the parser
  uses for SAX/DOM parser construction from
  IntegratedParserConfiguration to XML11Configuration.
  
  It should be noted that this might result in slight performance
  degradations for documents that use namespaces and do not employ
  DTD's, since XML11Configuration does not yet contain the optimization for
  these documents that IntegratedParserConfiguration does.
  
  Revision  Changes    Path
  1.3       +1 -1      
xml-xerces/java/src/org/apache/xerces/parsers/org.apache.xerces.xni.parser.XMLParserConfiguration
  
  Index: org.apache.xerces.xni.parser.XMLParserConfiguration
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/org.apache.xerces.xni.parser.XMLParserConfiguration,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- org.apache.xerces.xni.parser.XMLParserConfiguration       16 Sep 2002 17:54:40 
-0000      1.2
  +++ org.apache.xerces.xni.parser.XMLParserConfiguration       22 Jan 2003 16:51:41 
-0000      1.3
  @@ -1 +1 @@
  -org.apache.xerces.parsers.IntegratedParserConfiguration
  +org.apache.xerces.parsers.XML11Configuration
  
  
  
  1.2       +3 -3      
xml-xerces/java/src/org/apache/xerces/parsers/SecurityConfiguration.java
  
  Index: SecurityConfiguration.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/SecurityConfiguration.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SecurityConfiguration.java        8 Jan 2003 23:04:54 -0000       1.1
  +++ SecurityConfiguration.java        22 Jan 2003 16:51:41 -0000      1.2
  @@ -83,7 +83,7 @@
    *
    * @version $Id$
    */
  -public class SecurityConfiguration extends IntegratedParserConfiguration
  +public class SecurityConfiguration extends XML11Configuration
   {
   
       //
  @@ -148,5 +148,5 @@
           setProperty(SECURITY_MANAGER_PROPERTY, new SecurityManager());
       } // <init>(SymbolTable,XMLGrammarPool)
   
  -} // class IntegratedParserConfiguration
  +} // class SecurityConfiguration
   
  
  
  
  1.34      +3 -3      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.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- SAXParser.java    16 Sep 2002 21:36:41 -0000      1.33
  +++ SAXParser.java    22 Jan 2003 16:51:41 -0000      1.34
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 2000-2002 The Apache Software Foundation.  All rights 
  + * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -139,7 +139,7 @@
       public SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) {
           super((XMLParserConfiguration)ObjectFactory.createObject(
               "org.apache.xerces.xni.parser.XMLParserConfiguration",
  -            "org.apache.xerces.parsers.IntegratedParserConfiguration"
  +            "org.apache.xerces.parsers.XML11Configuration"
               ));
   
           // set features
  
  
  
  1.66      +2 -2      xml-xerces/java/src/org/apache/xerces/parsers/DOMParser.java
  
  Index: DOMParser.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/DOMParser.java,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- DOMParser.java    7 Jan 2003 22:23:47 -0000       1.65
  +++ DOMParser.java    22 Jan 2003 16:51:41 -0000      1.66
  @@ -152,7 +152,7 @@
       public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) {
           super((XMLParserConfiguration)ObjectFactory.createObject(
               "org.apache.xerces.xni.parser.XMLParserConfiguration",
  -            "org.apache.xerces.parsers.IntegratedParserConfiguration"
  +            "org.apache.xerces.parsers.XML11Configuration"
               ));
   
           // set properties
  
  
  
  1.29      +2 -2      
xml-xerces/java/src/org/apache/xerces/parsers/DOMBuilderImpl.java
  
  Index: DOMBuilderImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/DOMBuilderImpl.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- DOMBuilderImpl.java       17 Jan 2003 22:40:54 -0000      1.28
  +++ DOMBuilderImpl.java       22 Jan 2003 16:51:41 -0000      1.29
  @@ -218,7 +218,7 @@
                this(
                        (XMLParserConfiguration) ObjectFactory.createObject(
                                "org.apache.xerces.xni.parser.XMLParserConfiguration",
  -                             
"org.apache.xerces.parsers.IntegratedParserConfiguration"));
  +                             "org.apache.xerces.parsers.XML11Configuration"));
                fConfiguration.setProperty(
                        Constants.XERCES_PROPERTY_PREFIX + 
Constants.SYMBOL_TABLE_PROPERTY,
                        symbolTable);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to