readAsXml method
Reads the full content as an XML document.
Implementation
Future<ResourceTry<XmlDocument>> readAsXml() => readAsString()
.then((v) => v.mapCatching((input) => XmlDocument.parse(input)));
Reads the full content as an XML document.
Future<ResourceTry<XmlDocument>> readAsXml() => readAsString()
.then((v) => v.mapCatching((input) => XmlDocument.parse(input)));