How to get the contents(or perform some sort of checking) between two same nodes with consecutive attribute values. Take the below sample xml file
<items>
<item id="0001" type="donut">
<name>Cake</name>
<ppu>0.55</ppu>
<batters>
<batter id="1001">Regular</batter> is good <ax>1023</ax> and <batter id="1002">Chocolate</batter> or maybe <batter id="1003">Blueberry</batter>
</batters>
<topping id="5001">None</topping>
<topping id="5002">Glazed</topping>
<topping id="5005">Sugar</topping>
<topping id="5006">Sprinkles</topping>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
</item>
...
</items>
How do I get the contents between the nodes <batter id="...">
and the next <batter id="...">
i.e. is good <ax>1023</ax> and
and or maybe
using linq-to-xml?