Here you can find the source of namedNode(QName qname)
public static Predicate<? super Node> namedNode(QName qname)
//package com.java2s; //License from project: Apache License import java.util.Objects; import java.util.function.Predicate; import javax.annotation.Nullable; import javax.xml.namespace.QName; import org.w3c.dom.Node; public class Main { public static Predicate<? super Node> namedNode(QName qname) { return namedNode(qname.getNamespaceURI(), qname.getLocalPart()); }//from ww w . j a v a 2 s . c o m public static Predicate<? super Node> namedNode(@Nullable String nsUri, String localName) { return node -> (Objects.equals(node.getNamespaceURI(), nsUri) && node.getLocalName().equals(localName)); } }