Here you can find the source of getQName(Node n)
public static QName getQName(Node n)
//package com.java2s; /**// w ww.jav a 2 s.c o m * This file belongs to the BPELUnit utility and Eclipse plugin set. See enclosed * license file for more information. */ import javax.xml.namespace.QName; import org.w3c.dom.Node; public class Main { public static QName getQName(Node n) { if (n.getLocalName() != null) { return new QName(n.getNamespaceURI(), n.getLocalName()); } else { return new QName(n.getNamespaceURI(), n.getNodeName()); } } }