In the Example1 of Serialization Example , we have seen the three properties and
corresponding tag in resultant Xml file. Now we will store some information
from object properties into some other tag as an attribute.
Now we can see the difference after
execution of above piece of code.
For this,we have to add an attribute named XmlAttribute above the
Property field that sets the attribute.
No comments:
Post a Comment