readAsXml method

Future<ResourceTry<XmlDocument>> readAsXml()

Reads the full content as an XML document.

Implementation

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