@Override
	public boolean equals(Object obj) {
		XmlParserElement that = (XmlParserElement)obj;
		if (this.isStart != that.isStart) {
			return false;
		}
		if (!this.name.equals(that.name)) {
			return false;
		}
		boolean textEquals = (this.text == null && that.text == null) ||
                             (this.text != null && this.text.equals(that.text));
		if (!textEquals) {
			return false;
		}
		Iterator<String> iter = attrsMap.keySet().iterator();
		while (iter.hasNext()) {
			String lname = iter.next();
			Object thisValue = this.attrsMap.get(lname);
			Object thatValue = that.attrsMap.get(lname);
			if (thisValue == null && thatValue != null) {
				return false;
			}
			if (thisValue != null && thatValue == null) {
				return false;
			}
			if (thisValue != null && !thisValue.equals(thatValue)) {
				return false;
			}
		}
		return true;
	}
A class to represent the start or end tag from an XML file.
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlParserElement.java