XmlReader - Self-closing element does not fire a EndElement event? XmlReader - Self-closing element does not fire a EndElement event? xml xml

XmlReader - Self-closing element does not fire a EndElement event?


No, you check it by looking at XmlReader.IsEmptyElement.

In the docs for that property:

A corresponding EndElement node is not generated for empty elements.