@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer(name);
		String [] attrNames = getAttrNames();
		Arrays.sort(attrNames);
		for (int i = 0; i < attrNames.length; i++) {
			if (i == 0) {
				buffer.append(" ");
			}
            buffer.append(attrNames[i]);
			buffer.append("=\"");
			buffer.append(getAttrValue(attrNames[i]));
			buffer.append("\"");
			if (i < attrNames.length - 1) {
				buffer.append(" ");
			}
        }
        buffer.append(isStart ? " ->START":" ->END");
        return buffer.toString();
	}
A class to represent the start or end tag from an XML file.
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlParserElement.java