public void saveXml(Writer write) throws IOException {
		StringBuilder buf = new StringBuilder();
		buf.append("<simres");
		SpecXmlUtils.encodeUnsignedIntegerAttribute(buf, "id",
			basefunc.getExecutableRecord().getXrefIndex());
		SpecXmlUtils.xmlEscapeAttribute(buf, "name", basefunc.getFunctionName());
		SpecXmlUtils.encodeUnsignedIntegerAttribute(buf, "addr", basefunc.getAddress());
		SpecXmlUtils.encodeUnsignedIntegerAttribute(buf, "total", totalcount);
		buf.append(">\n");
		write.append(buf.toString());
		Iterator<SimilarityNote> iter = notes.iterator();
		while (iter.hasNext()) {
			iter.next().saveXml(write);
		}
		write.append("</simres>\n");
	}
A collection of matches to an (originally) queried function
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/protocol/SimilarityResult.java