I've created some c# classes from Xsds.
The classes have namespace attributes in the XmlRootAttribut es.
Accordingly, they will NOT deserialize with the XmlSerializer unless the
same namespace is defined.
I've prepared a temporary fix by loading the xml as an XmlDocument, amending
the first element to include the namespace, serialising this to a string and
deserialising to my classes.
But surely there is an easier way....
Iain
The classes have namespace attributes in the XmlRootAttribut es.
Accordingly, they will NOT deserialize with the XmlSerializer unless the
same namespace is defined.
I've prepared a temporary fix by loading the xml as an XmlDocument, amending
the first element to include the namespace, serialising this to a string and
deserialising to my classes.
But surely there is an easier way....
Iain
Comment