How can I generate xml elements or attributes from a custom collection?
I have a custom collection and items have two properties.
I want to serialize one property to an xmlelement and another property to an xmlattribute. How can I do this?
Volkan Genç, May 16, 2011
Wow! I have one of the most trending game that you loves to play online most of the kids loves to play fireboy and watergirl online game without any download and login the goal of the game is to collect the gems and run more to achieve the gems and avoid to pass through the red blue and green lake.
Himanshu Mishra, May 28, 2018
Give the [Serializable] attribute to appropriate property such a way you can serialize it by selective members.
Rajesh Shanmugam, Jun 01, 2011
To accomplish your goal add attributes to the properties in your collection. When the XML Serializer writes the XML it will create the requested node type.
Here's a sample in C#
Hope it helps,
Steve Thompson, May 17, 2011