SkipElementWithNamspace method

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

Implementation

void SkipElementWithNamspace(XmlNamespace xmlNamespace, String localName) {
  if (!this.IsEndElementWithNamespace(xmlNamespace, localName)) {
    if (!this.IsStartElementWithNamespace(xmlNamespace, localName)) {
      this.ReadStartElementWithNamespace(xmlNamespace, localName);
    }

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