Code example for Element

Methods: getOwnerDocument

0
     * @param e parent xml node of this object 
     * @param name of what the node is supposed to be 
     * @return this object's node (empty) 
     */ 
    public static Element create(Element e, String name) {
        return e.getOwnerDocument().createElement(name);
    } 
 
    /** 
     * @param e parent xml node of this object 
     * @param name of what the node is supposed to be 
     * @return this object's node with base elements 
     */ 
    public Element publish(Element e, String name) {
        return publish(create(e, name));
    } 
 
    /** 
     * @param e this object's xml node 
     * @return e this object's xml node 
     */