Here you can find the source of stringToQName(String s)
public static QName stringToQName(String s)
//package com.java2s; //License from project: Open Source License import javax.xml.namespace.QName; public class Main { public static QName stringToQName(String s) { String[] parts = s.split(" "); return new QName(parts[1], // namespaceURI parts[2], // localPart parts[0] // prfix );//from w ww . j a va 2 s .c o m } }