Files
xmltest/xmlserializetest/Groups.cs
2024-03-22 01:35:19 +01:00

46 lines
880 B
C#

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; }
}
}