Hi,
Need some help with an application that I am working with. It's a windows service that is an integration between two different systems. I am listening for events and when an event occur I receive an XML document.
I wan't to serialize that XML document into a C# class with DataContracts.
I have a problem with serializing that XML document because the XML document consists of a XML tag with name object.
- <object>
- <id>1</id>
- <name>NorthernLights</name>
- </object>
- public class object
- {
- [DataMember(IsRequired = true)]
- public Guid Id { get; set; }
- [DataMember(IsRequired= false)]
- public string name {get; set; }
- }
I cannot create a class with name object so I wonder how to solve this?
I cannot change the XML document.