private void startElement(String name, XmlAttributes attrs, String text) {
		if (addedText) {
			throw new IllegalStateException(
				"Cannot have child elements in parent elements with text!");
		}

		counter.increment(name);

		if (incompleteLine) {
			writer.println(">");
			incompleteLine = false;
		}
		indent();
		indentLevel++;
		writer.print("<");
		writer.print(name);
		incompleteLine = true;
		if (attrs != null) {
			writer.print(attrs.toString());
		}
		if (text != null) {
			writer.print(">");
			writer.print(XmlUtilities.escapeElementEntities(text));
			incompleteLine = false;
			addedText = true;
		}
	}
Writes the specified start element with the attributes.
@param name the name of the start element
@param attrs the attributes of the start element
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlWriter.java