@Override
	public void writeStringIndexed(AttributeId attribId, int index, String val) throws IOException {
		buffer.append(' ');
		buffer.append(attribId.name());
		buffer.append(index + 1);
		buffer.append("=\"");
		SpecXmlUtils.xmlEscape(buffer, val);
		buffer.append("\"");
	}
An XML based encoder
The underlying transfer encoding is an XML document.
The encoder is initialized with a StringBuilder which will receive the XML document as calls
are made on the encoder.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/XmlEncode.java