I am just moving over to LINQ, so still get stuck with certain scenarios.
In the following XML I need to select the correct Persist node based on the RoomCodes attribute value and also grab need the other values from the Item/@attributes based on what we selected. So if I needed the second one I would select by the @RoomCodes = "257|1" and would also need the currency etc. from that Persist node.
Thanks All
Daz
<Root>
<Persist>
<Item SequenceNum="Wy4FDfktUFj"/>
<Item RatePlanCode="Qgcu8UofK+ARXUwDD6NGf"/>
<Item RoomCodes="232|4"/>
<Item AmountAfterTax="1442.00"/>
<Item CurrencyCode="USD"/>
</Persist>
<Persist>
<Item SequenceNum="Wy4FDfktUFj"/>
<Item RatePlanCode="Unk28iUoIjundujak+9094j3"/>
<Item RoomCodes="257|1"/>
<Item AmountAfterTax="552.00"/>
<Item CurrencyCode="USD"/>
</Persist>
</Root>