private void writeEquate(XmlWriter writer, Equate equate, 
							 AddressSetView set) {
		boolean okToWrite=false;
		if (set == null) {
			okToWrite=true;
		}
		else {
			EquateReference[] refs = equate.getReferences();
			for (int i=0; i<refs.length; ++i) {
				if (set.contains(refs[i].getAddress())) {
					okToWrite = true;
					break;
				}
			}
		}
		if (okToWrite) {
			XmlAttributes attrs = new XmlAttributes();
			attrs.addAttribute("NAME", equate.getName());
			attrs.addAttribute("VALUE", equate.getValue(), true);
			writer.startElement("EQUATE", attrs);
			writer.endElement("EQUATE");
		}
	}
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