Chapter 3. Administration 73
In XML, the definition and syntax of the markup language are defined in a schema file. For the 
Content Manager OnDemand XML batch program, the schema file is called ondemand.xsd. It 
contains the definitions for the Content Manager OnDemand objects: users, groups, 
applications, application groups, storage sets, folders, printers, and others. Each Content 
Manager OnDemand object definition contains one or more child objects. For example, a user 
object has a child object for permissions, and a group object has a child object for users in the 
group. The schema file (ondemand.xsd) must not be changed in any way by the user.
The input XML file for the XML batch program is parsed to ensure that it is valid according to 
the schema file. Each object within the file is examined to ensure that the attributes are valid 
according to the object type. The XML batch program generates XML when Content Manager 
OnDemand objects are exported. The XML that is generated can be used as an input for the 
subsequent arsxml command. 
Example 3-1 shows a sample of the file exportusers.xml from the XML samples directory. 
Y ou can change the names of the users to the users that you want to export.
Example 3-1   Sample XML input file for exporting users
<?xml version="1.0" encoding="UTF-8"?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:noNamespaceSchemaLocation="../ondemand.xsd">
<user name="SAMPLEUSER0" />
<user name="SAMPLEUSER1" />
<user name="SAMPLEUSER2" />
<user name="SAMPLEUSER3" />
<user name="SAMPLEUSER4" />
</onDemand>
Y ou can export objects by running arsxml export. The following command exports the users 
that are listed in the exportuser.xml file, from the server odserver1, to an output file named 
users.xml:
arsxml export -u oduser1 -p /my/stash/pwfile -h odserver1 -i exportusers.xml -o 
users.xml -v
Y ou can import objects by running arsxml add. The following command imports the users 
from the users.xml file (which is generated from the previous command) to server odserver2:
arsxml add -u oduser2 -p /my/stash/pwfile -h odserver2 -i users.xml -v
Y ou can delete objects by running arsxml delete. The following command deletes the users 
from odserver2, based on the users that are listed in the users.xml file:
arsxml delete -u oduser2 -p /my/stash/pwfile -h odserver2 -i users.xml -v
For deletion, you are prompted before each object in the XML is deleted, unless the -x 
parameter is used.