Code example for Attr

Methods: getNodeValue

0
        return ALL; 
    } 
 
    @Override 
    public void visitAttribute(XmlContext context, Attr attribute) {
        String value = attribute.getNodeValue();
        if (value.startsWith("@*android:")) { //$NON-NLS-1$
            context.report(ISSUE, attribute, context.getLocation(attribute),
                    "Illegal resource reference: @*android resources are private and " + 
                    "not always present", null); 
        } 
    } 
}