Hi,
how do I generate attribut instead of element name? For example:
I want:
<car
name="Ford"
/>
instead of
<car
<name>Ford</name>
</car>
I have a class such as:
public __gc class Car {
System::String* name;
};
I think it can be done by adding [XmlAttribute("name")] right above
System::String* name; but I can't compile it because of error: error C2337:
'XmlAttribute' : attribute not found; it is neither a built-in nor a custom
attribute that is accessible in the current namespace
How do I do this? I am using managed C++.
Thank you!
--
Daniel