Java XML QName convertQNameToFullname(QName qn)

Here you can find the source of convertQNameToFullname(QName qn)

Description

convert Q Name To Fullname

License

LGPL

Declaration

public static String convertQNameToFullname(QName qn) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.xml.namespace.QName;

public class Main {
    public static String convertQNameToFullname(QName qn) {
        String returnValue = "";
        String nsu = qn.getNamespaceURI();
        if (nsu != null && nsu.length() != 0) {
            returnValue = "{" + nsu + "}";
        }//from   ww  w .j  a  v  a  2s.c o m
        returnValue += qn.getLocalPart();
        return returnValue;
    }
}

Related

  1. compareRelation(QName a, QName b)
  2. compareWithOutNamespace(QName value, QName tagName)
  3. concatAttributes(List startElements, QName attrName)
  4. contains(final QName[] qnames, final QName qname, final String defaultNamespace)
  5. convertQNameListToNamespaceToLocalNameList( List list)
  6. convertToQName(String source, String nameSpaceuri)
  7. copyQName(QName inName)
  8. crackQName(String qName)
  9. createCollection(QName... qnames)