Quantcast
Viewing all articles
Browse latest Browse all 543

Commented Issue: Ordering of XML-elements [10506]

Hi!

In an XSD, it is possible to request a specific sequence of elements using <xs:sequence> Relying on the order of the elements in the generated code (as in issue #9023) is quite brittle, since the code may be reordered or refactored. The best solution AFAICT would be using the built-in XmlElementAttribute.Order and/or DataMemberAttribute.Order attributes when generating the code (xsd.exe does this when executed with /order).
Comments: ** Comment from web user: mightymuke **

I have added a patch here that may help: http://xsd2code.codeplex.com/workitem/15607

Although I'm guessing that since this is now over 2 years old, you may no longer care.


Viewing all articles
Browse latest Browse all 543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>