IsStartElementWithPrefix method

bool IsStartElementWithPrefix(
  1. String namespacePrefix,
  2. String localName
)
Determines whether current element is a start element. The namespace prefix. Name of the local.

Implementation

bool IsStartElementWithPrefix(String namespacePrefix, String localName) {
  String fullyQualifiedName = FormatElementName(namespacePrefix, localName);

  return this.NodeType == XmlNodeType.Element &&
      this._xmlReader.Name == fullyQualifiedName;
}