xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leh...@apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/dom AttrImpl.java
Date Mon, 12 Feb 2001 19:29:48 GMT
lehors      01/02/12 11:29:48

  Modified:    java/src/org/apache/xerces/dom AttrImpl.java
  Log:
  fixed setOwnerDocument
  
  Revision  Changes    Path
  1.32      +17 -0     xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java
  
  Index: AttrImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- AttrImpl.java	2001/02/06 02:05:00	1.31
  +++ AttrImpl.java	2001/02/12 19:29:46	1.32
  @@ -197,6 +197,23 @@
           }
       }
   
  +    /**
  +     * NON-DOM
  +     * set the ownerDocument of this node and its children
  +     */
  +    void setOwnerDocument(DocumentImpl doc) {
  +        if (needsSyncChildren()) {
  +            synchronizeChildren();
  +        }
  +        super.setOwnerDocument(doc);
  +        if (!hasStringValue()) {
  +            for (ChildNode child = firstChild;
  +                 child != null; child = child.nextSibling) {
  +                child.setOwnerDocument(doc);
  +            }
  +        }
  +    }
  +
       //
       // Node methods
       //
  
  
  

Mime
View raw message