@Override
	public void saveXml(Writer fwrite) throws IOException {
		fwrite.append('<').append(name).append(">\n");
		fwrite.append("<tablename>");
		SpecXmlUtils.xmlEscapeWriter(fwrite, tableName);
		fwrite.append("</tablename>\n");
		fwrite.append("<keytype>");
		fwrite.append(Integer.toString(keyType));
		fwrite.append("</keytype>\n");
		fwrite.append("<valuetype>");
		fwrite.append(Integer.toString(valueType));
		fwrite.append("</valuetype>\n");
		for (Object key : keys) {
			fwrite.append("<key>");
			SpecXmlUtils.xmlEscapeWriter(fwrite, key.toString());
			fwrite.append("</key>\n");
		}
		for (Object val : values) {
			fwrite.append("<val>");
			SpecXmlUtils.xmlEscapeWriter(fwrite, val.toString());
			fwrite.append("</val>\n");
		}
		fwrite.append("</").append(name).append(">\n");
	}
Insert key/value pairs into an optional table
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/protocol/InsertOptionalValues.java