LoadFromXml method

  1. @override
Future<void> LoadFromXml(
  1. EwsXmlReader reader,
  2. String endElementName
)
override
Loads response from XML. The reader. End element name.

Implementation

@override
Future<void> LoadFromXml(EwsXmlReader reader, String endElementName) async {
  do {
    await reader.Read();

    if (reader.NodeType == XmlNodeType.Element) {
      if (reader.LocalName == this.GetResponseCollectionXmlElementName()) {
        await this.LoadResponseCollectionFromXml(reader);
      } else {
        await super.LoadFromXml(reader, endElementName);
      }
    }
  } while (!reader.IsEndElementWithNamespace(
      XmlNamespace.Autodiscover, endElementName));
}