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 (!this.IsEndElementWithNamespace(xmlNamespace, localName)) {
    if (!this.IsStartElementWithNamespace(xmlNamespace, localName)) {
      await this.ReadStartElementWithNamespace(xmlNamespace, localName);
    }

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