drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/ElementEditor.java
public static Element appendChild(Element parent, String name) {
        Assert.isTrue(isDAVElement(parent));
        Assert.isNotNull(name);
        String nsPrefix = getNSPrefix(parent);
        String tagName = nsPrefix == null ? name : nsPrefix + ":" + name; //$NON-NLS-1$
        Element child = parent.getOwnerDocument().createElement(tagName);
        parent.appendChild(child);
        return child;
    }
public static Element appendChild(Element parent, String name) {
        Assert.isTrue(isDAVElement(parent));
        Assert.isNotNull(name);
        String nsPrefix = getNSPrefix(parent);
        String tagName = nsPrefix == null ? name : nsPrefix + ":" + name; //$NON-NLS-1$
        Element child = parent.getOwnerDocument().createElement(tagName);
        parent.appendChild(child);
        return child;
    }
public static Element appendChild ( Element parent , String name ) { Assert . isTrue ( isDAVElement ( parent ) ) ; Assert . isNotNull ( name ) ; String nsPrefix = getNSPrefix ( parent ) ; String tagName = nsPrefix == null ? name : nsPrefix + ":" + name ; //$NON-NLS-1$ Element child = parent . getOwnerDocument ( ) . createElement ( tagName ) ; parent . appendChild ( child ) ; return child ; }
Creates a WebDAV element with the given name and appends it as a
child of the given parent. Returns the child element. The parent must
not be <code>null</code> and must be a WebDAV element. The name of
the child must not be <code>null</code>.

@param parent the parent element to which the child is added
@param name   the name of the child element that is created and added
as a child of the parent
@return       the child element that is created
Creates a WebDAV element with the given name and appends it as a child of the given parent . Returns the child element . The parent must not be <code > null< / code > and must be a WebDAV element . The name of the child must not be <code > null< / code > .