HashSet<String> nameSet = new HashSet<String>();
for (String name : names) {
nameSet.add(name);
}
ArrayList<Node> result = new ArrayList<Node>();
NodeListIterator iterator = new NodeListIterator(node);
for (Node node1 : iterator) {
if (hasName(ignoreNamespacePrefix, node1, nameSet))
result.add(node1);
else
INSTANCE.getLog().trace("ignored node ", node1.getNodeName());