Questions tagged [xml-attribute]

xml attributes deliver additional information about xml elements/tags.

xml attributes are name/value pairs delimited by equal sign and where the value is enclosed with quotes:

<element  attribute="value"/>

Usually the same information can be provided with sub-elements:

<element>
  <attribute>value</attribute>
</elemenbt>

Links:

317 questions
-3
votes
3 answers

Serialize XmlAttribute which is an empty string

I got a class which represents a soccerplayer: public class PlayerExtended { [XmlAttribute("id")] public string Id { get; set; } [XmlAttribute("shortName")] public string ShortName { get; set; } [XmlAttribute("firstName")] public string…
k.troy2012
  • 344
  • 4
  • 21
1 2 3
21
22