Creating XML files for delete and export

When you create an XML file to use for exporting or deleting objects, you should use the same syntax and layout as described in previous sections. However, there are two major differences:
  • The only attribute field that is examined is the name field.
  • All child objects are ignored.
When you export or delete objects, the only information that is required is the name of the objects. All other attributes might be present in the XML file, but are ignored. It is possible to delete only child objects through the update process. During a delete process all child objects are ignored.

When you specify an application for delete or export, you must also specify the name of the application group in which the application is contained.

The name of _ALL can be used during export and delete to indicate that all objects of that type should be exported or deleted.

To export the users SampleOne, SampleTwo, and SampleThree, you can use the following OnDemand XML file:
<?xml version="1.0" encoding="UTF-8"?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<user name="SampleOne"/>
<user name="SampleTwo"/>
<user name="SampleThree"/>
</onDemand>
To delete the printer, OldPrinter, and the folder, MyFolder, use the following XML code:
<printer name="OldPrinter"/>
<folder name="MyFolder"/>
To delete all defined printers, the following XML code could be used during a delete process.
<printer name="_ALL"/>