src/main/java/org/jboss/util/xml/DOMUtils.java
/** Create an Element for a given name, prefix and uri
    * @param localPart 
    * @param prefix 
    * @param uri 
    * @return the element
     */
Create an Element for a given name, prefix and uri
@param localPart
@param prefix
@param uri
@return the element
Create an Element for a given name prefix and uri @param localPart @param prefix @param uri @return the element
public static Element createElement(String localPart, String prefix, String uri)
    {
        Document doc = getOwnerDocument();
        if (prefix == null || prefix.length() == 0)
        {
            log.trace("createElement {" + uri + "}" + localPart);
            return doc.createElementNS(uri, localPart);
        }
        else
        {
            log.trace("createElement {" + uri + "}" + prefix + ":" + localPart);
            return doc.createElementNS(uri, prefix + ":" + localPart);
        }
    }
public static Element createElement ( String localPart , String prefix , String uri ) { Document doc = getOwnerDocument ( ) ; if ( prefix == null || prefix . length ( ) == 0 ) { log . trace ( "createElement {" + uri + "}" + localPart ) ; return doc . createElementNS ( uri , localPart ) ; } else { log . trace ( "createElement {" + uri + "}" + prefix + ":" + localPart ) ; return doc . createElementNS ( uri , prefix + ":" + localPart ) ; } }
Create an Element for a given name, prefix and uri
 @param localPart
 @param prefix
 @param uri
 @return the element
Create an Element for a given name prefix and uri @param localPart @param prefix @param uri @return the element