Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
118619 Points
18779 Posts
Nov 14, 2011 12:22 AM|LINK
Hello again:)
You should use LINQ-TO-XML to fetch more than one "ticket" tags and do looping like this below:
var result = from e in XDocument.Load("xxx.xml").Descedants("ticket") select new { NewProperty = e.Element("Subject").Value, …………………… };
foreach(var item in result) { Console.WriteLine(item.NewProperty……); }
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: get data from XML datatable
Nov 14, 2011 12:22 AM|LINK
Hello again:)
You should use LINQ-TO-XML to fetch more than one "ticket" tags and do looping like this below:
var result = from e in XDocument.Load("xxx.xml").Descedants("ticket")
select new
{
NewProperty = e.Element("Subject").Value,
……………………
};
foreach(var item in result)
{
Console.WriteLine(item.NewProperty……);
}