Code example for Document

Methods: createElementNS

0
        if (prefix != null && prefix.length() > 0)
            name = prefix + ':' + name;
         
        String uri = qname.getNamespaceURI();
         
        return doc.createElementNS(uri, name);
    } 
     
    /** 
     * 
     * @param e1 
     * @param e2 
     *  
     * @return True, if: 
     *         <ul> 
     *         <li>The two Elements have the same QName.</li> 
     *         <li>They have the same child elements, <b>in the same  
     *         order</b>; this includes Elements and Texts.</li> 
     *         <li>They have the same attributes, excluding XML namespace  
     *         and prefix definitions.</li> 
     *         </ul>