By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,779 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,779 IT Pros & Developers. It's quick & easy.

.NET and XMLSchemaSet

P: n/a
Hello,
Using .NET 2.0 and the System.XML.Schema.XMLSchema class. I am adding some
schemas into the XMLSchemaSet object using XmlSchemaSet.Add.
The schemas I am adding have circular imports, and therefore I have
implimented a custom XMLResolver class to help filter out duplicate schemas.
Now my questions:
1. If a schema I add has other schema imports they are sent to the
ResolveUri Override function. If any of these schemas already exist I return
Nothing (vb.net) otherwise I return the MyBase.ResolveUri. A Schema Warning
is raised noting that the 'schemalocation' is undefined. This appears to me
to have the effect of cancelling the adding of the Base Scema. Is this
correct?

2. Whilst debugging in the watch window I noticed the XmlSchema object has
an "ImportedSchemas" property of type Collections.ArrayList. I can't find
this property in the doco or the Object Browser. How may I get to this
property?

Sorry for being long winded but this is giving me the willies.

Cheers, Chris
Apr 19 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello Christophe,

Have you tried using the XmlSchemaSet object without the custom resolver?
The XmlSchemaSet object should be able to handle circular references just
fine (as opposed to the odl XmlSchemaCollection).

Thanks,
-Helena Kotas, MSFT

"Christopher" wrote:
Hello,
Using .NET 2.0 and the System.XML.Schema.XMLSchema class. I am adding some
schemas into the XMLSchemaSet object using XmlSchemaSet.Add.
The schemas I am adding have circular imports, and therefore I have
implimented a custom XMLResolver class to help filter out duplicate schemas.
Now my questions:
1. If a schema I add has other schema imports they are sent to the
ResolveUri Override function. If any of these schemas already exist I return
Nothing (vb.net) otherwise I return the MyBase.ResolveUri. A Schema Warning
is raised noting that the 'schemalocation' is undefined. This appears to me
to have the effect of cancelling the adding of the Base Scema. Is this
correct?

2. Whilst debugging in the watch window I noticed the XmlSchema object has
an "ImportedSchemas" property of type Collections.ArrayList. I can't find
this property in the doco or the Object Browser. How may I get to this
property?

Sorry for being long winded but this is giving me the willies.

Cheers, Chris
Apr 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.