Code example for Attr

Methods: getLocalName, getNamespaceURI, getPrefix, getValue, isId

0
    } 
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Detail detail = (Detail) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            detail.getUnknownAttributes().registerID(attribQName);
        } 
        detail.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        // do nothing, no child content 
    } 
}