public static void encode(Encoder encoder, Address addr) throws IOException {

		encoder.openElement(ELEM_ADDR);
		if ((addr == null) || (addr == Address.NO_ADDRESS)) {
			encoder.closeElement(ELEM_ADDR);
			return;
		}
		encodeAttributes(encoder, addr);
		encoder.closeElement(ELEM_ADDR);
	}
Encode the given Address as an {@code <addr>} element to the stream

@param encoder is the stream encoder
@param addr -- Address to encode
@throws IOException for errors in the underlying stream
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/AddressXML.java