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, wherein a data type of the data relating to the delimiter is set to a numerical type; 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, wherein the structure information generating unit generates the structure information as an N-dimensional (N is a natural number) array structure; 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 performs binary encoding with respect to a data stream of the region based on a preset structured description language, based on the detected delimiter and the structure information, wherein the structure information generating unit comprises: a determination unit that determines, when generating the structure information, whether or not a sequence of a plurality of identical structures is present; and a collection unit that collects, if the determination unit determines that a sequence of a plurality of identical structures is present, the plurality of identical structures by representing the identical structures as a pair of one structure and an iteration number and deleting the identical structures.