XML Schema

I want to create an XML file that respects a Schema. I tried using the XML extension but the only way I found to create an XML in OutSystems was through a variable text and export to file using the extension binarydata or filesystem.

Does anyone know how to use the XML extension to do what I want?