Patent ID: 8171395

Claim:
A method for interfacing with an XML (Extensible Markup Language) parser generator to generate deserialization information interleaved with XML parsing and validation, the method comprising: providing an XML parser generator with information about a specified input schema which the instance data conforms to; providing a data reporting application programming interface (API) module; performing by a computer: generating, by the XML parser generator, an XML parser to parse and validate instance documents conforming to the specified input schema; inserting, by the XML data reporting API module, user-defined code into the XML parser during the generating; and deserializing the instance documents into the desired deserialization form during the parse using the user-defined code, wherein two types of information is exchanged between the data reporting API and the XML parser generator, wherein a first type of information describes a current context that the XML parser generator is currently generating code for, and wherein a second type of information involves how the instance data is referenced during runtime and how the XML parser generator refers to the referenced instance data for parsing and validation requirements.