Author: ruchithf
Date: Mon Apr 17 22:49:32 2006
New Revision: 394850

URL: http://svn.apache.org/viewcvs?rev=394850&view=rev
Log:
Build an incomplete node before detaching

Modified:
    
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ChildNode.java

Modified: 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ChildNode.java
URL: 
http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ChildNode.java?rev=394850&r1=394849&r2=394850&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ChildNode.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ChildNode.java
 Mon Apr 17 22:49:32 2006
@@ -109,6 +109,9 @@
         if (this.parentNode == null) {
             throw new OMException("Parent level elements cannot be detached");
         } else {
+            if (!done) {
+                build();
+            }
             if (previousSibling == null) { // This is the first child
                 if (nextSibling != null) {
                     this.parentNode.setFirstChild(nextSibling);


Reply via email to