Patent ID: 7428697

Claim:
A method of preserving a content model of an element during a transformation from a structured document that describes the content model of the element into a computer program, the method comprising: inputting the structured document into a transformation processor, wherein the structured document is an XML schema; the transformation processor parsing the element into a group of fundamental constructs; the transformation processor converting each of the group of fundamental constructs to a plurality of computer program objects and a content model descriptor that corresponds to each of the computer program objects, the content model descriptors including the content and attribute model descriptors from the structured document that describes the content model; producing the objects as well formed representations of corresponding elements described in the structured document without modifying original syntax by preserving the original syntax defined in the structured document during conversion of the structured document into the computer program; determining if the object is a well formed representation of the corresponding element described in the structured document without testing individual objects generated by the transformation processor, wherein a well formed representation of an object results from a conversion from an element retaining and conforming to at least one of the content and attribute models described in the description of the element in the originating structured document; and preventing a user in real time from making changes to the content and attributes of an object not in agreement with content and attribute models of corresponding elements contained in the structured document; wherein the parsing includes recursively parsing the element until the element has been transformed into the simplest element types allowed in the structured document, and wherein the parsing includes a simple type and a compositor in the structured document.