1. An information processing apparatus which processes structured language data, the apparatus comprising: an acquisition unit configured to acquire structured language data as a processing target via one of a first communication path and a second communication path; a selection unit configured to select a rule corresponding to a communication path used for the acquisition by said acquisition unit from a first rule and a second rule which respectively correspond the first communication path and the second communication path and define processing methods for the structured language data; and a processing unit configured to process structured language data as a processing target acquired by said acquisition unit in accordance with a processing method defined in a rule selected by said selection unit, wherein said processing unit executes the processing based on the selected rule in either case that the first rule or the second rule is selected by the said selection unit.