Well, I solved my problem: by importing an external schema you should give
not only tha namespace and schemaLocation but also attach the schema object.
For example if you have 2 schemas schema1 and schema2

XmlSchemaImport import = new XmlSchemaImport();
import.Schema = schema2;
import.Namespace = ns;
import.SchemaLocation = uri_or_path_on_fs;
schema1.Includes.Add(import);

For generating DotNet-code out of these schemas I found this article very
good for beginners:
http://msdn.microsoft.com/XML/BuildingXML/XMLinNETFramework/default.aspx?pull=/library/en-us/dnxmlnet/html/xsdcodegen.asp

have fun

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to