How do I Deserialize xml document with namespaces using XmlSerializer?
When deserializing a document using XmlSerializer are not deserialized correctly Document <?xml version=\"1.0\"?> <ns0:ElementA xmlns:ns0=\"urn:some-namespace\"> <Prop1>Some Value</Prop1> <Prop2>Some other value</Prop2> </ns0:ElementA> Class [XmlRoot(Namespace = "urn:some-namespace")] public class ElementA { [XmlElement] public string Prop1 { get; set; } [XmlElement] public string Prop2 { get; set; } } Both Prop1 and Prop2 are null at the end of the deserialization. I cannot change the structure of the document to get rid of the namespace so I need to handle the deserialization properly on my