Thanks for the info, the code snippet for CreateElement is what I had been looking for. I was trying to use an XmlNode.
I reckon Ive got the other element in ok, as the schema states theres a 'sequence'. Having run it through the debugger, I think I see a problem. Im not loading the schema properly as examining the value of 'schemaIn' after it does the compile reveals that it contains 0 elements, as when I come to do the AppendChild, it raises a NullReferenceException.Maybe im missing doing as you suggested, to manually create and append this element?Not quite sure. As you can probably tell