XML : How can I read the children of a specific parent in Linq / XML

I have a very straight forward simple xml file that looks like this.

I want to get all the rows under hobby, and then I want to get all the rows under songs. So get row by what its under. Can anyone help, thank you!

  <sasjamal>        <hobbies>          <row>...</row>          <row>...</row>        </hobbies>        <songs>          <row>...</row>          <row>...</row>        </songs>  </sasjamal>    

No comments:

Post a Comment