Here you can find the source of serializeQName(QName qName)
public static String serializeQName(QName qName)
//package com.java2s; //License from project: LGPL import javax.xml.namespace.QName; public class Main { public static String serializeQName(QName qName) { if (qName == null) { return ""; }/*from w w w . j a v a 2 s .co m*/ return qName.getNamespaceURI() + "#" + qName.getLocalPart(); } }