Quantcast
Channel: xsd2Code community edition .net class generator from XSD schema
Viewing all articles
Browse latest Browse all 543

New Post: [System.Xml.Serialization.XmlIgnoreAttribute()] Why?

$
0
0

I have generated code from the MusicXml xsd.

In the generated code I get a number of [System.Xml.Serialization.XmlIgnoreAttribute()]. This will make that attribute not serialized.

I want all attributes to be serialized!

Why does XmlIgnoreAttribute occur and how do I remove it (without editing the generated code)?

I'm using VS2010, xsd2code 3.4.0.3867

The MusicXml xsd can be downloaded here: http://www.makemusic.com/dtds/musicxml30.zip

// Anders

Edit: Just realized that it's public bool properties that gets this treatment!


Viewing all articles
Browse latest Browse all 543

Trending Articles



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