I try get same children nodes value
I want to get children regularly
how to which the child belongs this value
XElement element = XElement.Load(filedialog.FileName);
var items = (from el in element.Descendants("property")
select new
{
values = el.Attribute("type").Value
}
.ToList();
gridControl.DataSource = items;
sample xml:
<node>
<properties>
<property type="application">denedim try1</property>
<property type="direction">in1</property>
<property type="to">verici verrrrrrr1</property>
<property type="text_body">patladi yaw1</property>
<property type="time" year="2013"</property>
<property type="from_id">6066256731</property>
<property type="to_id">6700378141</property>
<property type="status">FREE1</property>
<property type="uid">1501</property>
<property type="storage">USB1</property>
</properties>
</node>
<node>
<properties>
<property type="application">denedim try</property>
<property type="direction">in</property>
<property type="to">verici verrrrrrr</property>
<property type="text_body">patladi yaw</property>
<property type="time" year="2013"</property>
<property type="from_id">606625673</property>
<property type="to_id">670037814</property>
<property type="status">FREE</property>
<property type="uid">150</property>
<property type="storage">USB</property>
</properties>
</node>