You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/03/20 01:21:56 UTC

cvs commit: xml-crimson/src/org/apache/crimson/tree XmlDocument.java

edwingo     01/03/19 16:21:55

  Modified:    src/org/apache/crimson/tree XmlDocument.java
  Log:
  Fix Document.createAttribute() returns an attribute with null value
  
  Revision  Changes    Path
  1.8       +4 -4      xml-crimson/src/org/apache/crimson/tree/XmlDocument.java
  
  Index: XmlDocument.java
  ===================================================================
  RCS file: /home/cvs/xml-crimson/src/org/apache/crimson/tree/XmlDocument.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XmlDocument.java	2001/03/19 23:39:35	1.7
  +++ XmlDocument.java	2001/03/20 00:21:55	1.8
  @@ -1,5 +1,5 @@
   /*
  - * $Id: XmlDocument.java,v 1.7 2001/03/19 23:39:35 edwingo Exp $
  + * $Id: XmlDocument.java,v 1.8 2001/03/20 00:21:55 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -129,7 +129,7 @@
    *
    * @author David Brownell
    * @author Rajiv Mordani
  - * @version $Revision: 1.7 $
  + * @version $Revision: 1.8 $
    */
   public class XmlDocument extends ParentNode implements DocumentEx
   {
  @@ -994,7 +994,7 @@
           if (!XmlNames.isName(name)) {
               throw new DomEx(DOMException.INVALID_CHARACTER_ERR);
           }
  -        AttributeNode1 retval = new AttributeNode1(name, null, true, null);
  +        AttributeNode1 retval = new AttributeNode1(name, "", true, null);
           retval.setOwnerDocument(this);
           return retval;
       }
  @@ -1008,7 +1008,7 @@
       {
           AttributeNode.checkArguments(namespaceURI, qualifiedName);
           AttributeNode retval = new AttributeNode(namespaceURI, qualifiedName,
  -                                                 null, true, null);
  +                                                 "", true, null);
           retval.setOwnerDocument(this);
           return retval;
       }
  
  
  

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