Thankyou both for your replies, I have now managed to extract the data but now have another issue.
Im writing the data to a datatable, putting all of the items as an array. The only issue I have is if one of the items is not in the DocumentData it throughs an error.
So say some of the DocmuentData’s may or may not Contain thus thrwoing the error. I tried “Allow Nulls” in the build datatable but to no effect
I have a for each loop running through the “pair:ApplicationCorrespondenceData”
but some of them have 2 sets of DocumentData.
Im writing to a datatable, so I would need the header data the same for each row, but the doc data on seperate rows.
I’d have to loop again, but how do I do this
as far we understand your question looping as mentioned above should be doable as well.
we can also navigate from one to another XElement e.g. to the parent
in such scenarios we can collect data step by step and add it afterwards to the datatable. E.g drNew = DataTable.NewRow and succesive population of drNew during the different nested loops