# toXML method

XMLNode toXML()

## Implementation

    XMLNode toXML() {
      return XMLNode.xmlns(
        tag: 'file-sharing',
        xmlns: sfsXmlns,
        attributes: {
          if (self.id != null) 'id': id
        },
        children: [
          metadata.toXML(),
          XMLNode(
            tag: 'sources',
            children: sources.map((source) => source.toXml()).toList(),
          ),
        ],
      );
    }