private static boolean nodeNameMatch ( Node node , Collection < ? > desiredNames ) { return ( desiredNames . contains ( node . getNodeName ( ) ) || desiredNames . contains ( node . getLocalName ( ) ) ) ; }
Matches the given node s name and local name against the given desired names .