Code example for Attr

Methods: getValueisIdgetLocalNamegetNamespaceURIgetPrefix

0
    } 
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Body body = (Body) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            body.getUnknownAttributes().registerID(attribQName);
        } 
        body.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        // do nothing, no child content 
    } 
} 
Experience pair programming with AI  Get Codota for Java