62,041
社区成员
发帖
与我相关
我的任务
分享
public class Case
{
string applyFrom;
[XmlAttribute(AttributeName = "applyFrom")]
public string ApplyFrom
{
get { return applyFrom; }
set { applyFrom = value; }
}
List<Route> route = new List<Route>();
[XmlElement(ElementName="Route")]
public List<Route> Route
{
get;
set;
}
}
DataSet ds = new DataSet();
ds.ReadXml("test.xml");
string apply = ds.Tables["Case"].Rows[0][1].ToString();
string type = ds.Tables["Case"].Rows[0][2].ToString();
string unid = ds.Tables["Case"].Rows[0][3].ToString();