Here you can find the source of toURI(QName name)
static URI toURI(QName name)
//package com.java2s; //License from project: Apache License import java.net.URI; import javax.xml.namespace.QName; public class Main { static URI toURI(QName name) { return URI.create(name.getNamespaceURI() + name.getLocalPart()); }//from w w w . j a v a 2s . co m }