Distinguishing whole closing tag (“”) and self-closing tag (“”) in SAX endElement
I extended org.xml.sax.helpers.DefaultHandler
. When during the parsing an element closes and my endElement
callback executes, I would like to be able to tell whether in the XML the element is closed with a whole closing tag like </tag>
, or instead it’s an element that opens and closes in the same tag like <tag ... />
.