SkipElement method

void SkipElement(
  1. String namespacePrefix,
  2. String localName
)
Skips the element. The namespace prefix. Name of the local.

Implementation

void SkipElement(String namespacePrefix, String localName) {
  if (!this.IsEndElement(namespacePrefix, localName)) {
    if (!this.IsStartElementWithPrefix(namespacePrefix, localName)) {
      this.ReadStartElement(namespacePrefix, localName);
    }

    if (!this.IsEmptyElement) {
      do {
        this.Read();
      } while (!this.IsEndElement(namespacePrefix, localName));
    }
  }
}