Being the modular programmer that I am, I have broken up all my XML Schema files into multiple files so that I don't repeat the same information in two places. So I use the <import> element and schemaLocation attribute to bring in all the other stuff that I need.
Now when I load the schema myself (XmlSchema.Read) and then run a compile, everything works fine (of course, my schemaLocation attribute is the absolute path which I would like to work around if at all possible). I can query XmlSchema.SchemaTypes for a QName that is defined in a different schema file and get it correctly. Now when I run the schema through the XSD.exe tool, it CANNOT find my additional types. Which is odd because I would have assumed that XSD.exe issues a call to Compile as well which brings imports and includes. But it doesn't appear that it does. Anyone know how to get XSD.exe to include my additional types from separate files? You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.