Patent ID: 8111411

Claim:
An information processing apparatus for generating a printer command to control a printer, based on print attribute information and print data, comprising: a computer-readable storage medium on which is stored a command configuration XML file in a human readable form; an input unit constructed to accept input from a user concerning print attribute information; a loading unit constructed to load the command configuration XML file which includes (a) a lookup table which has relationships between the print attribute information and a corresponding command attribute value, (b) a default command attribute value, and (c) a reserved word; a searching unit constructed to search a reserved word described in a specific character string in the loaded command configuration XML file; an obtaining unit constructed to obtain a command attribute value corresponding to the inputted print attribute information by referring to the lookup table in the loaded command configuration XML file; a replacing unit constructed to (1) replace the searched reserved word in the loaded command configuration XML file with the obtained command attribute value in a case where the inputted print attribute information exists in the lookup table, and (2) replace the searched reserved word in the loaded command configuration XML file with the default command attribute value in a case where the inputted print attribute information does not exist in the lookup table; an eliminating unit constructed to eliminate the lookup table in the loaded command configuration XML file processed by the replacing unit to generate a data-reduced command configuration XML file; and a command generation unit constructed to generate the printer control command on the basis of the data-reduced command configuration XML file processed by the eliminating unit.