xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From el...@apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/parsers DOMParser.java
Date Thu, 01 Feb 2001 17:14:32 GMT
elena       01/02/01 09:14:31

  Modified:    java/src/org/apache/xerces/parsers DOMParser.java
  Log:
  Forgot to take care for non-xerces implementation of DOM. (DOM L3)
  
  Revision  Changes    Path
  1.36      +11 -3     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.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- DOMParser.java	2001/02/01 16:06:45	1.35
  +++ DOMParser.java	2001/02/01 17:14:30	1.36
  @@ -109,7 +109,7 @@
    * DOMParser provides a parser which produces a W3C DOM tree as its output
    *
    * 
  - * @version $Id: DOMParser.java,v 1.35 2001/02/01 16:06:45 elena Exp $
  + * @version $Id: DOMParser.java,v 1.36 2001/02/01 17:14:30 elena Exp $
    */
   public class DOMParser
       extends XMLParser
  @@ -972,11 +972,16 @@
                fDocumentImpl.setEncoding(fStringPool.toString(encodingIndex));
                fDocumentImpl.setStandalone(standalone);
            }
  -         else {              
  +         else if (fDeferredDocumentImpl != null) {              
                fDeferredDocumentImpl.setVersion(fStringPool.toString(versionIndex));
                fDeferredDocumentImpl.setEncoding(fStringPool.toString(encodingIndex));
                fDeferredDocumentImpl.setStandalone(standalone);
            }
  +         else{
  +          //non xerces implementation
  +         }
  +         
  +         
       }
   
       /** Text declaration. 
  @@ -1001,7 +1006,7 @@
               }    
           }
          // full node expansion
  -       else { 
  +       else if (fDocumentImpl !=null){ 
               NamedNodeMap entities = fDocumentType.getEntities();
               if (entities!=null) {
                   EntityImpl entityNode = (EntityImpl)entities.getNamedItem(fCurrentElementNode.getNodeName());
  @@ -1010,6 +1015,9 @@
                       entityNode.setEncoding(fStringPool.toString(encodingIndex));
                   }
               }
  +        }
  +        else {
  +           //non xerces implementation
           }
       }
   
  
  
  

Mime
View raw message