public static String getAttributeValue(Element el, QName attrName) {
    """
	Get the value from the given attribute
	@param el
	@param attrName
	
	@return null if the attribute value is empty or the attribute is not present
    """
        String attr = null;
        if ("".equals(attrName.getNamespaceURI()))
            attr = el.getAttribute(attrName.getLocalPart());
        else attr = el.getAttributeNS(attrName.getNamespaceURI(), attrName.getLocalPart());

        if ("".equals(attr))
            attr = null;

        return attr;
    }
public static String getAttributeValue(Element el, QName attrName)
    {
        String attr = null;
        if ("".equals(attrName.getNamespaceURI()))
            attr = el.getAttribute(attrName.getLocalPart());
        else attr = el.getAttributeNS(attrName.getNamespaceURI(), attrName.getLocalPart());

        if ("".equals(attr))
            attr = null;

        return attr;
    }
public static String getAttributeValue ( Element el , QName attrName ) { String attr = null ; if ( "" . equals ( attrName . getNamespaceURI ( ) ) ) attr = el . getAttribute ( attrName . getLocalPart ( ) ) ; else attr = el . getAttributeNS ( attrName . getNamespaceURI ( ) , attrName . getLocalPart ( ) ) ; if ( "" . equals ( attr ) ) attr = null ; return attr ; }
Get the value from the given attribute
@param el
@param attrName

@return null if the attribute value is empty or the attribute is not present
Get the value from the given attribute @param el @param attrName