110,565
社区成员
发帖
与我相关
我的任务
分享
public class CFolderTest
{
[XmlAttribute]
public string NodeType;
[XmlElement]
public HiveTest[] HiveTest;
[XmlElement]
public CFolderTest[] FolderTest;
}
public class HiveTest
{
[XmlElement]
public HiveProperties HiveProperties;
}
public class HiveProperties
{
[XmlAttribute]
public string NodeType;
[XmlElement]
public string TestName;
[XmlElement]
public string RealName;
[XmlElement]
public string CheckStateTest;
[XmlElement]
public Parameter Parameters;
}
[/quote]
他已经给你序列化为对象了?还是啥。要是能读XML文件,使用linq to xml方便点 public class CFolderTest
{
[XmlAttribute]
public string NodeType;
[XmlElement]
public HiveTest[] HiveTest;
[XmlElement]
public CFolderTest[] FolderTest;
}
public class HiveTest
{
[XmlElement]
public HiveProperties HiveProperties;
}
public class HiveProperties
{
[XmlAttribute]
public string NodeType;
[XmlElement]
public string TestName;
[XmlElement]
public string RealName;
[XmlElement]
public string CheckStateTest;
[XmlElement]
public Parameter Parameters;
}