I need to create an XML file based on the input of a data file. While reading the data file, i would like to create elements in my output XML file. This is not a problem... but the problem i am having is how to ensure that the elements are being created according to the sequence defined in the schema file. I have no way of knowing which order the elements should appear in. I am looking for a solution can can sort my output XML to conform with the sequence definition of the schema file.