SkipElementWithNamspace method

Future<void> SkipElementWithNamspace(
  1. XmlNamespace xmlNamespace,
  2. String localName
)
Skips the element. The XML namespace. Name of the local.

Implementation

Future<void> SkipElementWithNamspace(
  XmlNamespace xmlNamespace,
  String localName,
) async {
  if (!IsEndElementWithNamespace(xmlNamespace, localName)) {
    if (!IsStartElementWithNamespace(xmlNamespace, localName)) {
      await ReadStartElementWithNamespace(xmlNamespace, localName);
    }

    if (!IsEmptyElement) {
      do {
        await Read();
      } while (!IsEndElementWithNamespace(xmlNamespace, localName));
    }
  }
}