12. The apparatus according to claim 11 , the apparatus further comprising: an annotation tool for marking semantics of the sample data according to the annotation rule, wherein the annotations added to the sample data according to the annotation rule are retrieved from the annotation tool.
11. An apparatus for generating a Data Format Description Language (DFDL) schema, the apparatus comprising: a memory; and a processor communicatively coupled to the memory, wherein the processor is configured to perform a method comprising: retrieving annotations added to sample data according to an annotation rule; analyzing, automatically, the annotated sample data; generating a computer readable description of the annotated sample data according to the DFDL specification; creating, using the computer readable description of the sample data, a logic schema and a configuration file according to the annotation rule and the retrieved annotations added to the sample data, wherein the logic schema represents a tree structure of data elements in the sample data, and the configuration file defines computer executable operations of adding DFDL annotations, corresponding to the retrieved annotations, into the logic schema, wherein the configuration file includes a first section and a second section, the first section including code for declaring operations and generation processes, the second section including code for inputting parameters of the operations declared in the first section; generating, automatically, a DFDL schema corresponding to the sample data according to the logic schema and the configuration file by: loading and parsing the first section of the configuration file; retrieving, based on the parsing of the first section of the configuration file, an operation to be performed from the first section of the configuration file; loading and parsing the second section of the configuration file according to a value of an input attribute in the operation; retrieving, based on the parsing the second section of the configuration file, an input definition of the operation, wherein the input definition of the operation includes a location of an attribute to be added to the DFDL schema, a name of the attribute, and a value of the attribute; loading and parsing the logic schema using the location to determine a definition for an element; and generating the element in the DFDL schema using the definition, wherein the element includes the name of the attribute and the value of the attribute; receiving a stream of data; and converting, automatically, the stream of data into a DFDL document using the generated DFDL schema.