Code example for QName

Methods: toString

0
 
    public static SynapseXPath getSynapseXPath(OMElement elem, QName attribName)
        throws JaxenException { 
 
        SynapseXPath xpath = null;
        OMAttribute xpathAttrib = elem.getAttribute(attribName);
 
        if (xpathAttrib != null && xpathAttrib.getAttributeValue() != null) {
 
            xpath = new SynapseXPath(xpathAttrib.getAttributeValue());
            OMElementUtils.addNameSpaces(xpath, elem, log);
            xpath.addNamespacesForFallbackProcessing(elem);
 
        } else { 
            handleException("Couldn't find the XPath attribute with the QName : " 
                + attribName.toString() + " in the element : " + elem.toString());
        }        
 
        return xpath;
    }