2
Ich habe einen XML-StringXML-String Array deserialisieren
<ItemAttributes>
<Binding>Misc.</Binding>
<Brand>Gilbert</Brand>
<Department>mens</Department>
<Feature>Elasticated waist with drawcord</Feature>
<Feature>Two pockets with reinforced stitching at base</Feature>
<Feature>Reinforced seams for strength in wear</Feature>
<Feature>Off set inside leg seam to reduce chaffing</Feature>
<Feature>100% Cotton Twill</Feature>
</ItemAttributes>
und Klasse
[Serializable()]
public class ItemAttributes
{
public string Binding { get; set; }
public string Brand { get; set; }
public string Color { get; set; }
[XmlArrayItem("Feature")]
public string[] Feature { get; set; }
}
Wenn ich xml deserialisieren zu widersprechen, "Feature" überhaupt keinen Wert hat. Ich möchte, dass es sich um eine Reihe von Strings handelt.
Thank you so much! –