Parse an XML file without elements



I am trying to parse an XML file . The issue I am facing is that the file doesn't seems to have elements. It does have a root and each child raw has multiples attributes . I would like to know how to define the elements and attributes so i can use them later in a linq to xml code set. I just need the attributes and elements layers. thanks



<Details>
<Item name>="Overview1" offset="0" length="0">
<Item name>="Item" value="add" offset="0" length="0"/>
<Item name>="status" value="OK" offset="0" length="0"/>
<Item name>="time" value="123" offset="0" length="0"/>
</Item>
<Item name>="Overview2" offset="0" length="0">
<Item name>="timing" value="0" offset="0" length="0"/>
<Item name>="startT" value="0" offset="0" length="0"/>
<Item name>="duration" value="0" offset="0" length="0"/>
</Item>
</Details>

No comments:

Post a Comment