xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From santiag...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/trax SAX2DOM.java
Date Tue, 09 Apr 2002 19:07:59 GMT
santiagopg    02/04/09 12:07:59

  Modified:    java/src/org/apache/xalan/xsltc/trax SAX2DOM.java
  Log:
  Regression fixed.
  
  Revision  Changes    Path
  1.10      +8 -2      xml-xalan/java/src/org/apache/xalan/xsltc/trax/SAX2DOM.java
  
  Index: SAX2DOM.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/SAX2DOM.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SAX2DOM.java	8 Apr 2002 16:18:39 -0000	1.9
  +++ SAX2DOM.java	9 Apr 2002 19:07:59 -0000	1.10
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: SAX2DOM.java,v 1.9 2002/04/08 16:18:39 santiagopg Exp $
  + * @(#)$Id: SAX2DOM.java,v 1.10 2002/04/09 19:07:59 santiagopg Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -92,7 +92,13 @@
       }
   
       public SAX2DOM(Node root) throws ParserConfigurationException {
  -	_root = (Document) root;   // TODO: add support for frags and elems
  +	if (root != null) {
  +	    _root = (Document) root;   // TODO: add support for frags and elems
  +	}
  +	else {
  +	    final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
  +	    _root = factory.newDocumentBuilder().newDocument();
  +	}
       }
   
       public Node getDOM() {
  
  
  

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


Mime
View raw message