Here you can find the source of createQName(String localPart)
public static QName createQName(String localPart)
//package com.java2s; /**/*w w w. ja va2s . c om*/ * Copyright (c) 2013, 2014 Denis Nikiforov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Denis Nikiforov - initial API and implementation */ import javax.xml.namespace.QName; public class Main { public static QName createQName(String localPart) { return new QName(localPart); } public static QName createQName(String namespaceURI, String localPart) { return new QName(namespaceURI, localPart); } public static QName createQName(String namespaceURI, String localPart, String prefix) { return new QName(namespaceURI, localPart, prefix); } }