我有这样的课:
[XmlRoot("channel")]
public class Channel
{
[XmlElement("title")]
public String Title { get; set; }
[WhatElseGoesHere]
[XmlArrayItem("item")]
public List<Item> Items { get; set; }
}
我想要的输出是这样的:
<channel>
<title>The title</title>
<item>{item content}</item>
<item>{item content}</item>
</channel>