Export XML 📤

#FidelitasUniversity

I created this custom code that exports a collection, in this case, of cars, to an XML file

That's how it would look

And this is the code

what has to be changed would be this line "final fileName = "FF" + DateTime.now().toString() + ".xml";" the only thing you change is the xml for the type of file you need to export

Here are the parameters and the dependencies that are needed.


And all of this code depends on your collection, both on the name and how it appears here CarrosRecord


This is my collection with its objects


and this contains each make of car

3
1 reply