I am getting xml like this from our vendor:
<XXX>
<XXXDATASET ROWS="00005">
<XXXROW>
<XXXColum ID="CustomerName">John Smith</XXXColum >
<XXXColum ID="AddressLine1">Road One</XXXColum >
<XXXColum ID="Zip">123456</XXXColum >
</XXXROW>
<XXXROW></XXXROW>
....
</XXXDATASET>
</XXX>
I want to de serialize this to Customer Object something like:
Class Customer
{
public string CustomerName;
public string AddressLine1;
public string Zip;
}
I want to use XSD.EXE tool for generating the class and use .NET XML
Serializer.
When I use the XSD tool to generate the class, I got the following:
public class XXXXXXDATASETXXXROWXXXColum {
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string ID;
/// <remarks/>
[System.Xml.Serialization.XmlTextAttribute()]
public string Value;
}
Is there any way to de serialize to my Class Customer
Instead of class XXXXXXDATASETXXXROWXXXColum.