ReadEndElementIfNecessary method

Future<void> ReadEndElementIfNecessary(
  1. XmlNamespace xmlNamespace,
  2. String? localName
)
Reads the end element if necessary. The XML namespace. Name of the local.

Implementation

Future<void> ReadEndElementIfNecessary(
    XmlNamespace xmlNamespace, String? localName) async {
  if (!(this.IsStartElementWithNamespace(xmlNamespace, localName) &&
      this.IsEmptyElement)) {
    if (!this.IsEndElementWithNamespace(xmlNamespace, localName)) {
      await this.ReadEndElementWithNamespace(xmlNamespace, localName);
    }
  }
}