all groups > dotnet xml > may 2007 >
You're in the

dotnet xml

group:

Unable to get UnhandledAttributes for XmlSchemaChoice Class


Unable to get UnhandledAttributes for XmlSchemaChoice Class Luc Alquier
5/28/2007 2:27:01 AM
dotnet xml:
Context : .Net Framwork 2.0, C#, XPSP2,VStudio 2005

hi,

Is this behavior is by design or is it a bug ?
I've found any documentation that mention that fact.
It works fine for the following schema objects, i've tested :
- XmlSchemaElement
- XmlSchemaAttribute
- XmlSchemaEnumerationFacet

I've tried both API i.e. compile schema with XMLSchemaSet and the deprecated
one XmlSchema.Compile

Please do not answer that i can put my custom attribute elswhere it is what
i have made.

I just want to know if
- it is my misundertooding of api
- this behavior is by design
- it is a bug and there is a patch
- it is a bug and there is no patch
- it is a bug and there no plan to fix it today
- ....

Best Regards


Addendum :

XSD Sample

<xs:choice nrdata:dependOn="type">
<xs:element name="fqdn" type="Tfdqn" nrdata:dependOn="type"/>
<xs:element name="ip" type="TIrange" nrdata:dependOn="type"/>
</xs:choice>



RE: Unable to get UnhandledAttributes for XmlSchemaChoice Class Luc Alquier
6/27/2007 3:28:01 AM


So it is was my misundertooding of API

To fix that i traversed element using
complexType.Particle
instead of
complexType.ContentTypeParticle;

AddThis Social Bookmark Button