Code example for Attr

Methods: getValueisIdgetLocalNamegetNamespaceURIgetPrefix

0
     *  
     * {@inheritDoc} 
     */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AttributeExtensibleXMLObject anyAttribute = (AttributeExtensibleXMLObject) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            anyAttribute.getUnknownAttributes().registerID(attribQName);
        } 
        anyAttribute.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java