My questions is regarding XML to LINQ where i have something as following structure:
<Or>
<value />
<Or>
<value />
<Or> //this is the deepest "or" element i should get in this case
<value />
<value />
</Or>
</Or>
</Or>
Which i basically build programmatically through the recrusion, but my questions i rather how to get the deepest Or element?
If i do:
elements.Element("Or"), it just gets me the first top element Or ….
Waitin for response.
1 Answer