InternalReadElementWithNamespace method
Future<void>
InternalReadElementWithNamespace(
- XmlNamespace xmlNamespace,
- String? localName,
- XmlNodeType nodeType
Implementation
/* private */
Future<void> InternalReadElementWithNamespace(
XmlNamespace xmlNamespace,
String? localName,
XmlNodeType nodeType,
) async {
if (xmlNamespace == XmlNamespace.NotSpecified) {
await _InternalReadElement("", localName, nodeType);
} else {
await Read(nodeType: nodeType);
if ((LocalName != localName) ||
(NamespaceUri != EwsUtilities.GetNamespaceUri(xmlNamespace))) {
print("---- $NamespaceUri");
throw ServiceXmlDeserializationException("""string.Format(
Strings.UnexpectedElement,
${EwsUtilities.GetNamespacePrefix(xmlNamespace)},
$localName,
$nodeType,
${_xmlReader.Name},
$NodeType)""");
}
}
}