private void processEquate(XmlPullParser parser, XmlElement element) {
		if (!element.isStart()) {
			return;
		}
		element = parser.next();//consume EQUATE start tag...

		String name = element.getAttribute("NAME");
		long value = XmlUtilities.parseLong(element.getAttribute("VALUE"));

		try {
			equateTable.createEquate(name, value);
		}
		catch (DuplicateNameException e) {
			Equate eq = equateTable.getEquate(name);
			long prevVal = eq.getValue();
			if (prevVal != value) {
				log.appendMsg("Cannot create equate ["+name+
								"] with value ["+Long.toHexString(value)+
								"]; previously defined with value ["+
								Long.toHexString(prevVal)+"]");
			}
		}
		catch (Exception e) {
			log.appendException(e);
		}

		element = parser.peek();
		if (element.getName().equals("REGULAR_CMT")) {
			element = parser.next();
			element = parser.next();
		}
		element = parser.peek();
		if (element.getName().equals("REPEATABLE_CMT")) {
			element = parser.next();
			element = parser.next();
		}

		element = parser.next();//consume EQUATE end tag...
	}
Write out the XML for the Equates.
@param writer writer for XML
@param set address set that is either the entire program or a selection
@param monitor monitor that can be canceled
should be written
@throws IOException
Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/EquatesXmlMgr.java