private void parseHint(Element element) throws SAXException {
		String attrName = element.getAttributeValue("ATTR");
		String value = element.getAttributeValue("VALUE");
		if (attrName == null) {
			throw new SAXException("HINT element requires both ATTR and VALUE attributes");
		}
		String ordStr = element.getAttributeValue("ORDINAL");
		if (ordStr != null) {
			try {
				add(Integer.parseInt(ordStr), new Attribute(attrName, value));
			}
			catch (NumberFormatException e) {
				throw new SAXException("HINT element ORDINAL attribute must be an integer value");
			}
		}
		String name = element.getAttributeValue("NAME");
		if (name != null) {
			add(name, new Attribute(attrName, value));
		}
	}
Get the named attribute hint based on either an ordinal or label name.
Use of the ordinal takes precedence.

@param ordinal
@param name
@param attrName
@return attribute hint or null
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/LibraryHints.java