jodd-lagarto/src/main/java/jodd/lagarto/dom/Node.java
protected void changeOwnerDocument(final Node node, final Document ownerDocument) {
		node.ownerDocument = ownerDocument;

		int childCount = node.getChildNodesCount();
		for (int i = 0; i < childCount; i++) {
			Node child = node.getChild(i);
			changeOwnerDocument(child, ownerDocument);
		}
	}
protected void changeOwnerDocument(final Node node, final Document ownerDocument) {
		node.ownerDocument = ownerDocument;

		int childCount = node.getChildNodesCount();
		for (int i = 0; i < childCount; i++) {
			Node child = node.getChild(i);
			changeOwnerDocument(child, ownerDocument);
		}
	}
protected void changeOwnerDocument ( final Node node , final Document ownerDocument ) { node . ownerDocument = ownerDocument ; int childCount = node . getChildNodesCount ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { Node child = node . getChild ( i ) ; changeOwnerDocument ( child , ownerDocument ) ; } }
Changes owner document for given node and all its children.
Changes owner document for given node and all its children .