public static Element addElement(Element parent, String name) {

        return parent.addElement(new QName(name, Namespace.get("D", DEFAULT_NAMESPACE)));
    }
public static Element addElement ( Element parent , String name ) { return parent . addElement ( new QName ( name , Namespace . get ( "D" , DEFAULT_NAMESPACE ) ) ) ; }
Adds an xml element to the given parent and sets the appropriate namespace and
prefix.<p>

@param parent the parent node to add the element
@param name the name of the new element

@return the created element with the given name which was added to the given parent