Java XML QName Get getName(QName qName)

Here you can find the source of getName(QName qName)

Description

get Name

License

Open Source License

Declaration

private static String getName(QName qName) 

Method Source Code


//package com.java2s;
/*/*from   w ww.j ava  2 s  .co m*/
*  Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*  WSO2 Inc. licenses this file to you 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import javax.xml.namespace.QName;

public class Main {
    private static String getName(QName qName) {
        return qName.getLocalPart() + " - " + qName.getNamespaceURI();
    }
}

Related

  1. getElementQName(Class type)
  2. getElementQName(Element element)
  3. getElementQName(Element xml)
  4. getElementQName(final Element el)
  5. getElements(Node context, QName qname)
  6. getName(QName qname)
  7. getQName(@Nonnull final Element aElement)
  8. getQName(Class klass)
  9. getQName(Element el)