readAsXmlOrNull method

Future<XmlDocument?> readAsXmlOrNull(
  1. String href
)

Returns the resource data as an XML Document at the given href, or null.

Implementation

Future<XmlDocument?> readAsXmlOrNull(String href) => getWithHref(href)
    .use((it) => it.readAsXml().then((xml) => xml.getOrNull()));