Note: I cannot use XSD... not going to go into why.
I'm having a problem properly representing the following xml in a class that it should get deserialized into:
XML:
<product>
<sku>oursku</sku>
<attribute name="attrib1">value1</attribute>
<attribute name="attrib2">value2</attribute>
<attribute name="attribx">valuex</attribute>
</product>
the problem is representing the attribute nodes
What I have so far is:
[XmlElement(ElementName = "Attribute")]
public Attribute[] productAttributes;
public class Attribute
{
[XmlAttribute(AttributeName = "Name")]
public string attributeName;
public Attribute()
{
}
}
I know I'm missing something to store the value, and perhaps