function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ahmad AmiriAhmad Amiri 

Generate XML: Visualforce page Vs Dom library Vs XmlStreamWriter

I need to generate XML file every month from different custom object with a hug data more than 10000 records. I wonder which way is best to
Generate XML:
1- Visualforce page and apex
2- Dom library 
3- XmlStreamWriter class

Any help would be appreciated!
Ahmad Amiri
For a onece a month job like this, i'd use a Data loader export job to export the records and have it save the records in XML Format.

You're going to run into some kind of limit if you choose any other path. Either http size limits, data access limits etc.