This invention allows to print without installing a driver program for
every printer and easily coping with a change in printer control command
specifications. To accomplish this, an information processing apparatus
for generating a printer command to control a printer generates a command
by using a command configuration XML file representing a printer command
configuration in which a part that changes due to an external factor such
as a user interface is described by a reserved word, thereby coping with
a printer model and user environment.