I have following xml.
<?xml version="1.0"?>
<DataElement Name="Borrower">DocumentEntity="Borrower"|DataType="Table"|Value="
<Borrowers>
<Borrower1><Field1>Value="Value1"</Field1>
<Field2>Value="Value2"</Field2>
</Borrower1>
<Borrower2>
<Field1>Value="Value1"</Field1>
<Field2>Value="Value2"</Field2>
</Borrower2>
</Borrowers>
"
</DataElement>
I am trying to get the value for DataElement Borrower in another xml so that i can use that to further read each of borrower nodes data.
i am using XmlDocument childnodes property to get the inside ones. But since this is a nested xml inside it again, i am unable to understand how to get this. Please help.
I have fixed the XML in a way I think is making sense and I present you this solution:
I am using
Linqto select theBorrowersand then I do aForEachover each foundBorrowerand again a loop over the items of eachBorrower.