using System; using System.Linq; using System.Xml; using System.Xml.Serialization; namespace xmlserializetest { public class Groups { [XmlAttribute("xmlns")] public string Xmlns { get; set; } [XmlElement("group")] public Group[] Group { get; set; } } public class Group { [XmlAttribute("name")] public string Name { get; set; } [XmlAttribute("desc")] public string Desc { get; set; } [XmlAttribute("type")] public string Type { get; set; } [XmlAttribute("color")] public string Color { get; set; } [XmlElement("pin")] public Pin[] Pin { get; set; } } public class Pin { [XmlAttribute("name")] public string Name { get; set; } [XmlAttribute("desc")] public string Desc { get; set; } } }