How can I deserialise an XML element into an array of elements with both attributes and text in C#?
问题 I am having a problem trying to deserialise this XML: <?xml version="1.0" encoding="UTF-8"?> <links> <link title="ABC">http://abc.co.uk</link> <link title="eBay">http://ebay.co.uk</link> <link title="Best Damn Site on the Web">http://stackoverflow.com</link> </links> Using the code: [XmlRoot("links")] public class LinksInterface { [XmlElement("link")] public List<LinkElement> Links; public class LinkElement { [XmlAttribute("title")] public string Title; [XmlText] // This bit is the