Patent ID: 7287219

Claim:
A computer executable method comprising: receiving as input a first source document and a first document type definition for the first source document, the first source document conforming to the first document type definition; receiving as input a target document type definition, the target document type definition being different from the first document type definition; examining the first document type definition and the target document type definition to identify common patterns in the document type definitions, each of the common patterns being a substructure having a particular occurrence of a respective element and one or more of the sub-elements of the element, and common patterns being patterns existing in each of the first document type definition and target document type definition, including identifying an element that exists in each of the first and the target document type definitions but has a different name in the first document type definition than the target document type definition; and using the common patterns identified examining the first and the target document type definitions to map without user intervention elements and sub-elements of the first document type definition in the first source document to recode the first source document according to the target document type definition to equivalent elements and sub-elements, including changing a first tag name of a first element in the first source document to a different second tag name.