readAsXml method

Future<ResourceTry<XmlDocument>> readAsXml()
inherited

Reads the full content as an XML document.

Implementation

Future<ResourceTry<XmlDocument>> readAsXml() => readAsString()
    .then((v) => v.mapCatching((input) => XmlDocument.parse(input)));