Hello,
I've got a class I want to serialize into XML.
Simple example:
The class is called "ElementClass" and contains the property "ElementName" which I give the value of "Commodity".
Can I serialize it so the XML output is along the lines of
"<Commodity>", and not "<ElementClass>"?
Or does serializing a class always create an XML element (or attribute) called whatever the class is called?
Thanks
I've got a class I want to serialize into XML.
Simple example:
The class is called "ElementClass" and contains the property "ElementName" which I give the value of "Commodity".
Can I serialize it so the XML output is along the lines of
"<Commodity>", and not "<ElementClass>"?
Or does serializing a class always create an XML element (or attribute) called whatever the class is called?
Thanks