471,071 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

.NET and XMLSchemaSet

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
1 4061
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.

Similar topics

2 posts views Thread by Alex Shirshov | last post: by
5 posts views Thread by Brice Prunier | last post: by
3 posts views Thread by sachinvyas | last post: by
1 post views Thread by Angel \Java\ Lopez | last post: by
7 posts views Thread by =?Utf-8?B?Q29kZVJhem9y?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.