Using XmlSerializer with an array in the root element
问题 I have an XML document similar to the following: <scan_details> <object name="C:\Users\MyUser\Documents\Target1.doc"> ... </object> <object name="C:\Users\MyUser\Documents\Target2.doc"> ... </object> ... </scan_details> I am hoping to use the System.Xml.Serialization attributes to simplify XML deserialization. The issue I have is I cannot work out how to specify that the root node contains an array. I have tried creating the following classes: [XmlRoot("scan_details")] public class