I have a C# class generated by xsd.exe from the xsd file. I also have an xml
file defined by xsd and the root looks like:
<MyNickname:MyObject xmlns:MyNickname="..." xmlns:xsi="..."
xsi:schemaLocation="...">
....
However, these attributes in the root are lost when I deserialize the xml
into the C# file so that if I serialize it back to the xml file again, it
will be different than the original file.
Is that a way to serialize the attributes to the C# class to reserve the
information? I am using both the XmlSerilizer and DataContractSerializer.