1st commit
This commit is contained in:
62
xmlserializetest/Tests.cs
Normal file
62
xmlserializetest/Tests.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace xmlserializetest
|
||||
{
|
||||
public class Tests
|
||||
{
|
||||
[XmlAttribute("xmlns")]
|
||||
public string Xmlns { get; set; }
|
||||
|
||||
[XmlElement("test", Namespace = "")]
|
||||
public Test[] Test { get; set; }
|
||||
|
||||
}
|
||||
public class Test
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
[XmlAttribute("desc")]
|
||||
public string Desc { get; set; }
|
||||
[XmlAttribute("testType")]
|
||||
public string TestType { get; set; }
|
||||
|
||||
[XmlElement("summary")]
|
||||
public Summary Summary { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Summary
|
||||
{
|
||||
[XmlElement("section")]
|
||||
public Section Section { get; set; }
|
||||
}
|
||||
|
||||
public class Section
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
[XmlAttribute("indentation")]
|
||||
public string Indentation { get; set; }
|
||||
[XmlAttribute("typeName")]
|
||||
public string TypeName { get; set; }
|
||||
|
||||
[XmlElement("heading")]
|
||||
public XmlCDataSection[] Heading { get; set; }
|
||||
|
||||
[XmlElement("desc")]
|
||||
public Desc[] Desc { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Desc
|
||||
{
|
||||
[XmlAttribute("header")]
|
||||
public string Header { get; set; }
|
||||
|
||||
[XmlText]
|
||||
public string desc { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user