I am trying to serialize an object that contains an EventArgs object. If I ignore the EventArgs object upon serialization, everything works fine, but if I don't put an [XmlIgnore] above it, the application crashes with the error message
System.InvalidOperationException was unhandled
Message=There was an error generating the XML docume...
In my music/rhythm game, I using serialization in order to save user-created simfiles (think music tabs or notecharts). Nothing too earth-shattering there. But, I'm using a DataContract in order to perform the serialization, because:
1) I need private and protected fields serialized as well. I don't care if they're visible, mainly due t...
I'm rather new to WCF and the Entity Framework, so bear with me.
I'm passing objects generated by the Entity Framework through a WCF service, and I want to be able to access said objects with both SOAP and REST. What I have currently works, but the outputted XML seems far more bloated than it needs to be. Here's an example response from...
Hi guys,
I have an xml file, something like this:
<root>
<groups>
<group />
<group />
</groups>
</root>
Now, I want to make a class something like this:
[XmlRoot]
public class Root
{
[XmlElement("groups")]
public Groups Groups { get; set; }
}
The problem is that the XmlElement attribute will make all the co...