private static boolean nodeNameMatch ( Node node , String desiredName ) { return ( desiredName . equals ( node . getNodeName ( ) ) || desiredName . equals ( node . getLocalName ( ) ) ) ; }
Matches the given node s name and local name against the given desired name .