@Override
	public void writeBool(AttributeId attribId, boolean val) throws IOException {
		if (attribId == ATTRIB_CONTENT) {	// Special id indicating, text value
			if (tagStatus == TAG_START) {
				buffer.append('>');
			}
			buffer.append(val ? "true" : "false");
			tagStatus = TAG_CONTENT;
			return;
		}
		buffer.append(' ');
		buffer.append(attribId.name());
		buffer.append("=\"");
		buffer.append(val ? "true" : "false");
		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