1. An information processing apparatus for generating a command to control a printer, comprising: a unit adapted to prepare a command configuration XML file representing a command configuration; an analyzing unit adapted to analyze the command configuration XML file; and a command generation unit adapted to generate a printer control command on the basis of the command configuration XML file.