private Address parseRegisterAddress(Element element, AddressFactory addrFactory)
			throws SAXException {
		String addrStr = element.getAttributeValue("address");
		String offsetStr = element.getAttributeValue("offset");
		if (addrStr == null && offsetStr == null) {
			throw new SAXException(
				"Missing required " + element.getName() + " 'address' or 'offset' attribute");
		}
		Address addr = null;
		if (addrStr != null) {
			if (offsetStr != null) {
				throw new SAXException(
					element.getName() + " must not specify both 'address' and 'offset' attribute");
			}
			addr = XmlProgramUtilities.parseAddress(addrFactory, addrStr);
			if (addr == null) {
				throw new SAXException(
					"invalid address attribute value: address=" + addrStr + "\"");
			}
		}
		else {
			try {
				addr = addrFactory.getRegisterSpace().getAddress(XmlUtilities.parseLong(offsetStr));
			}
			catch (Exception e) {
			}
			if (addr == null) {
				throw new SAXException("invalid register offset value: offset=" + addrStr + "\"");
			}
		}
		return addr;
	}
Returns language description associated with this old language.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/OldLanguage.java