public static boolean isDAVElement(Node node, String name) {
    """
	Returns a boolean indicating whether or not the given node is a
	WebDAV element with the given name. The node may be <code>null</code>
	in which case <code>false</code> is returned. The name must not be
	<code>null</code>.
	
	@param node a node, or <code>null</code>
	@return     a boolean indicating whether or not the given node is a
	WebDAV element with the given name
    """
        Assert.isNotNull(name);
        if (node == null || node.getNodeType() != Node.ELEMENT_NODE)
            return false;
        try {
            Element element = (Element) node;
            if (!name.equals(getNSLocalName(element)) || !DAV_NS.equals(getNSName(element))) {
                return false;
            }
        } catch (MalformedElementException e) {
            return false;
        }
        return true;
    }
public static boolean isDAVElement(Node node, String name) {
        Assert.isNotNull(name);
        if (node == null || node.getNodeType() != Node.ELEMENT_NODE)
            return false;
        try {
            Element element = (Element) node;
            if (!name.equals(getNSLocalName(element)) || !DAV_NS.equals(getNSName(element))) {
                return false;
            }
        } catch (MalformedElementException e) {
            return false;
        }
        return true;
    }
public static boolean isDAVElement ( Node node , String name ) { Assert . isNotNull ( name ) ; if ( node == null || node . getNodeType ( ) != Node . ELEMENT_NODE ) return false ; try { Element element = ( Element ) node ; if ( ! name . equals ( getNSLocalName ( element ) ) || ! DAV_NS . equals ( getNSName ( element ) ) ) { return false ; } } catch ( MalformedElementException e ) { return false ; } return true ; }
Returns a boolean indicating whether or not the given node is a
WebDAV element with the given name. The node may be <code>null</code>
in which case <code>false</code> is returned. The name must not be
<code>null</code>.

@param node a node, or <code>null</code>
@return     a boolean indicating whether or not the given node is a
WebDAV element with the given name
Returns a boolean indicating whether or not the given node is a WebDAV element with the given name . The node may be <code > null< / code > in which case <code > false< / code > is returned . The name must not be <code > null< / code > .