Refer to the export example, export.xml, for more task examples.