Have somebody had already the problem of having to write more than one XmlSchema,
where some of these schemas have imports to others and respectively derived types?
The imports cannot be resolved until I dont save all schemas to disk, but I cannot
do this because I get an error for the derived types(which have base types from schema
which is not written yet, so the import cannot be resolved).
How could I solve this problem? I dont need any resolving, just save them to disk.
By compiling when I give a null-value for the XmlResolver
schema.Compile(textWriter, null)
I dont get the warning for the import, but still have an error for the derived type.
I also cannot give a specific order of the schemas to be written, because there could
be cycles of derivation in these schemas.
Perhaps somebody can tell me, if it is possible to generate all my elements in one schema
but still keep the namespaces and have derivation from one namespace to other? (I guess not).
It would be pitty to leave the XmlSchema object model and just write strings to files.
Thanks in advance!
--------------------------------
From: Rumen Traykov
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>5F1bKmoKyECaVGBweM2hLQ==</Id>