Patent ID: 8201083

Claim:
A method for validating simple type data in XML documents, the method comprising: performing on a computer: identifying data via an Extensible Markup Language (XML); defining a tag set by developing schema for specifying formal data typing and validation of element content in terms of data types; generating a parser for parsing the collection of elements in a first stage where the schema is read and modeled in terms of abstract schema components, a second stage where the schema is augmented with a set of calculated schema components and properties used to drive code generation, and a third stage where the schema is traversed to generate a validation code for each of the collection of elements, to generate simple type validator modules which perform: well-formedness checking the data; validating the data against specific type data; and converting the data to datatype-specific form data; wherein the well-formedness checking step, the validating step, and the converting step occur in a single pass, and to generate a type-specific validator module which perform: checking for a common case; wherein in cases that common-case checking fails, character content is revisited and revalidated against a full set of valid input for a given type.