1. A method for generating a schema definition, comprising: receiving a language-specific metamodel generated from a nested data structure definition written in a legacy computer language; naming and defining a complex type schema element for the nested data structure; and creating the schema definition by walking through the metamodel to examine each node in the metamodel, and for each node, creating a respective schema element according to a predefined mapped relationship.