Patent ID: 8375045

Claim:
A method, comprising: defining a schema using binary markup language (BML), the schema comprising one or more elements representing a series of bits and each element comprising an attributes parameter, the attributes parameter comprising at least one of an attribute parameter describing one field of an element and a choice parameter including one default option and a list of option parameters, defining the schema comprising: defining the one or more elements; defining the attributes parameter for each element; storing the schema on a non-transitory machine readable medium; and translating a binary data stream using the schema, wherein translating a binary data stream using the schema comprises: determining if a choice parameter is detected; processing the choice parameter if the choice parameter is detected; determining if an iteration parameter is detected if a choice parameter is not detected; processing the iteration parameter if the iteration parameter is detected; determining if an element is detected if the iteration parameter is not detected; processing the element if the element is detected; and raising an error if the element is not detected, wherein processing the choice parameter comprises determining a branch value and selecting a branch, wherein processing the iteration parameter comprises determining count parameters and processing the count parameters determined, wherein processing the element comprises: determining if there are any choice parameters; determining a branch value, selecting a branch and processing the branch if there are choice parameters; determining if an attribute parameter is detected; determining a length of the attribute, read a number of bits from the binary data stream and convert the number of bits into a value whose type is defined in an attribute parameter definition if the attribute parameter is detected.