US2008028376A1PendingUtilityA1

Simple one-pass w3c xml schema simple type parsing, validation, and deserialization system

Assignee: IBMPriority: Jul 26, 2006Filed: Jul 26, 2006Published: Jan 31, 2008
Est. expiryJul 26, 2026(expired)· nominal 20-yr term from priority
G06F 40/143
42
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

A method for validating simple type data in XML documents, the method comprising: identifying data via an Extensible Markup Language (XML); 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, and generate simple type validator modules which perform well-formedness checking the data; validating the simple type data against specific type information; and converting the data to datatype-specific form, all in a single pass.

Claims

exact text as granted — not AI-modified
1 . A method for validating simple type data in XML documents, the method comprising:
 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 and 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.   
   
   
       2 . The method of  claim 1 , wherein the schema for the data are defined with XML Schema. 
   
   
       3 . The method of  claim 1 , wherein the parser uses one or more simple types defined in the schema for each of which a separate type-specific validator is generated. 
   
   
       4 . The method of  claim 3 , wherein the specialized type-specific simple type validators check for a common case and in cases that common-case parsing fails, character content is revisited and revalidated against a full set of valid input for a given type.

Join the waitlist — get patent alerts

Track US2008028376A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.