public int getAttrValueAsInt(String attrName) throws XmlAttributeException {
		try {
			String intStr = getAttrValue(attrName);
			return XmlUtilities.parseInt(intStr);
		}
		catch (NullPointerException e) {
			throw new XmlAttributeException("Element: "+name+": attribute "+attrName+" does not exist.");
		}
		catch (NumberFormatException e) {
			throw new XmlAttributeException("Element: "+name+": attribute "+attrName+" is not a valid integer: "+getAttrValue(attrName));
		}
	}
Returns the integer value of the specified attribute.
@param attrName the name of the attribute
@return the integer value of the specified attribute
@throws XmlAttributeException if no attribute exists with the specified name
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlParserElement.java