Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / June 2007

Tip: Looking for answers? Try searching our database.

Unable to get UnhandledAttributes for XmlSchemaChoice Class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luc Alquier - 28 May 2007 10:27 GMT
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>
Luc Alquier - 27 Jun 2007 11:28 GMT
So it is was my misundertooding of API

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

Thanks to me for answer.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.