Share via


David talks about serializing fields as XML node attributes

There are times that you may wish to serialize one or more fields as attributes on the object's node (ex: reduce the size of the XML).  By decorating the TestID field with an XmlAttribute attribute, the TestID field

[XmlAttribute()]public Int32 TestID;

now becomes an attribute
Read more here

Comments