Saturday, September 14, 2013

Fun 2 with Xml Serialization

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.
For this,we have to add an attribute named XmlAttribute above the Property field that sets the attribute.
 
Now we can see the difference after execution of above piece of code. 
 

No comments:

Copyright © Codingnodes,2014.All Rights Reserved.