Namespaces, Schemas & XmlSerializer
I have a C# class that I serialze to an xml file using the standard XmlSerializer object. We have just updated the xml so that it should now include a reference to a validating schema and use a custom namespace.
Q1. How do I include the reference to my schema whilst deserializing?
Q2. When deserializing with an XmlSerializerNamespaces object it will only prefix my elements with the namespace prefix, not any Attributes. How do I resolve this?