# StatelessFileSharingData.fromXML constructor

StatelessFileSharingData.fromXML(

1. XMLNode node

)

Parse `node` as a StatelessFileSharingData element.

## Implementation

    factory StatelessFileSharingData.fromXML(XMLNode node) {
      assert(node.attributes['xmlns'] == sfsXmlns, 'Invalid element xmlns');
      assert(node.tag == 'file-sharing', 'Invalid element name');

      return StatelessFileSharingData(
        FileMetadataData.fromXML(node.firstTag('file')!),
        // TODO(PapaTutuWawa): This is a work around for Stickers where the source element has a XMLNS but SFS does not have one.
        processStatelessFileSharingSources(node, checkXmlns: false),
      );
    }