EnsureCurrentNodeIsStartElementWithNamespace method

void EnsureCurrentNodeIsStartElementWithNamespace(
  1. XmlNamespace xmlNamespace,
  2. String? localName
)
Ensures the current node is start element. The XML namespace. Name of the local.

Implementation

void EnsureCurrentNodeIsStartElementWithNamespace(
  XmlNamespace xmlNamespace,
  String? localName,
) {
  if (!IsStartElementWithNamespace(xmlNamespace, localName)) {
    throw ServiceXmlDeserializationException("""string.Format(
                      Strings.ElementNotFound,
                      localName,
                      xmlNamespace)""");
  }
}