Patent ID: 7970730
Filing Date: 2011-06-28
Classification: G06F

Abstract:
1. In a computing environment comprising a processor operatively coupled to a memory, a computer-implemented method for dynamically generating classes and instances of said classes from XML input data using runtime type schema inferencing, thereby facilitating efficient and convenient runtime late-bound access to dynamic data types, the method comprising: receiving a first input stream of XML input data from an XML document, wherein upon receiving the XML input data, a type schema of the XML input data is unknown; processing, at runtime, the XML input data in order to infer a type schema of the input data based on actual values of the input data of the first input stream, wherein the type schema represents an organization or structure of the input data of the first input stream which is unknown prior to being inferred; generating source code from the type schema and compiling the source code to generate one or more classes that represent the XML input data of the first input stream; loading the generated one or more classes into memory; generating an instance of each of the generated one or more classes and deserializing the XML input data of the first input stream to the one or more instances, thereby enabling late-bound access to the XML input data of the first input stream through the one or more instances; perform a caching operation for generation of the type schema during the runtime process; receiving a second input stream of XML input data from an XML document; processing, at runtime, the XML input data of the second input stream to validate the XML input data of the second input stream against the type schema, including determining whether the type schema is valid as to the XML input data of the second input stream, and