Archive for August, 2008
Serialization using C#
Serialization using C#
Steps
1. Create a Sample class library
2. Implement custom XML attributes
3. Write Client Call to serialize to XMLString
Example
Create a Sample class library & Implement custom XML attributes
namespace ExpShoppingList
{
[XmlRoot("shoppingList")]
public class ShoppingList
{
private ArrayList listShopping;
public ShoppingList()
{
listShopping = new ArrayList();
}
[XmlElement("item")]
public Item[] Items
{
get
{
Item[] items = new [...]


