parseXmlExternalInstance function

TreeElement parseXmlExternalInstance(
  1. String instanceId,
  2. Uint8List bytes
)

Parses an XML secondary-instance file: its document element becomes the instance's top-level element. Port of XmlExternalInstance.parse.

Implementation

TreeElement parseXmlExternalInstance(String instanceId, Uint8List bytes) =>
    parseTreeElement(decodeXmlBytes(bytes), instanceId: instanceId);