Here you can find the source of copyQName(QName inName)
public static QName copyQName(QName inName)
//package com.java2s; /******************************************************************************* * Copyright (c) 2006-2010 eBay Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *******************************************************************************/ import javax.xml.namespace.QName; public class Main { public static QName copyQName(QName inName) { if (inName == null) { return null; }//w w w .j a va 2 s . com return new QName(inName.getNamespaceURI(), inName.getLocalPart()); } }