Code example for NamespaceContext

Methods: getNamespaceURI

0
        else 
        { 
            final String prefix = qualifiedName.substring(0, index) ;
            final String localName = qualifiedName.substring(index+1) ;
             
            final String namespaceURI = getNormalisedValue(namespaceContext.getNamespaceURI(prefix)) ;
            return new QName(namespaceURI, localName, prefix) ;
        } 
    } 
 
    /** 
     * Get the normalised value of the string. 
     * @param value The string value. 
     * @return The normalised value. 
     */ 
    public static String getNormalisedValue(final String value)
    { 
        if (value == null)
        { 
            return "" ;