[System.Xml.Serialization.XmlIgnoreAttribute()] Why?

Aug 3, 2012 at 9:28 PM
Edited Aug 3, 2012 at 9:46 PM

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!