1) Clread the complex XML file with ALL of the data that you eventualy want.
2) Load THIS File into the DataSEt
3) Write the dataset (which alreadfy has all of the relations since it is loaded from a "complex" XML).