US 7,467,149 B2
Complex syntax validation and business logic validation rules, using VAXs (value-added XSDs) compliant with W3C-XML schema specification
Suraj Gaurav, Issaquah, Wash. (US); Mathrubootham Janakiraman, Redmond, Wash. (US); and Surendra Machiraju, Redmond, Wash. (US)
Assigned to Microsoft Corporation, Redmond, Wash. (US)
Filed on Mar. 14, 2005, as Appl. No. 11/79,661.
Prior Publication US 2006/0206503 A1, Sep. 14, 2006
Int. Cl. G06F 7/00 (2006.01)
U.S. Cl. 707—101  [707/104.1; 717/137; 715/237; 715/239] 16 Claims
OG exemplary drawing
 
1. A computer-implemented system that facilitates formally describing structured documents and complex validation rules using extensible markup language schema definitions (XSDs), comprising:
an integration engine that parses an incoming structured document and gleans information related to document structure;
a schema generation component that constructs an XSD schema based at least in part on structural information related to the document and annotates at least one node of the XSD schema with validation rules to create a value-added XSD (VAX), the validation rules comprise structure rules that validate syntax of XML data generated in accordance with the VAX, the validation rules further include data value rules that validate non-XSD data types and business rules that validate at least co-existence requirements;
a validation component that reads annotations in the VAX at run time to validate document structure, business rules and data values during translation of the document from a structured format to an XML format, the validation component includes a validation handler component that reads validation handlers in the annotations to validate document structure, business rules and data values, the validation handler component comprises one or more predefined validation routines stored in a library and called as directed by a read annotation; and
a processor coupled to a memory.