Code example for QName

Methods: getLocalPart, getNamespaceURI, getPrefix

0
 
        try { 
            SynapseXPathVariableContext variableContext = new SynapseXPathVariableContext(
                    parentVariableContext, synCtx);
            return variableContext.getVariableValue(SynapseConstants.SYNAPSE_NAMESPACE.equals(
                    variable.getNamespaceURI())?null:variable.getNamespaceURI()
                    , variable.getPrefix(), variable.getLocalPart());
        } catch (UnresolvableException e) {
            throw new SynapseException("DOM Synapse XPATH variable resolution failed",e);
        } 
    } 
}