public long getAttrValueAsLong(String attrName) throws XmlAttributeException {
		try {
			String longStr = getAttrValue(attrName);
			boolean isNegative = longStr.startsWith("-");
			if (isNegative) {
				longStr = longStr.substring(1);
			}
			int radix = 10;
			if (longStr.startsWith("0x")) {
				longStr = longStr.substring(2);
				radix = 16;
			}
			long longVal = new BigInteger(longStr, radix).longValue();
			if (isNegative) {
				longVal *= -1;
			}
			return longVal;
		}
		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 long: "+getAttrValue(attrName));
		}
	}
Returns the long value of the specified attribute.
@param attrName the name of the attribute
@return the long 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