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 (!(IsStartElementWithNamespace(xmlNamespace, localName) &&
      IsEmptyElement)) {
    if (!IsEndElementWithNamespace(xmlNamespace, localName)) {
      await ReadEndElementWithNamespace(xmlNamespace, localName);
    }
  }
}