1. An information processing apparatus, comprising: a file input unit that inputs a file including an element having a data stream of a predetermined format as an attribute value; a hierarchy information setting unit that, with respect to each of one or more delimiters included in the data stream of the predetermined format, sets hierarchy information that indicates a hierarchical position in the data stream of data relating to the delimiter; a structure information generating unit that generates structure information that defines a mutual relation between one or more pieces of hierarchy information that are set with the hierarchy information setting unit; a designating unit that designates a region of the data stream of the predetermined format from a file that is input by the file input unit; and an encoding unit that detects the delimiter from the region that is designated by the designating unit, and encodes a data stream of the region based on a preset structured description language, based on the detected delimiter and the structure information.