Figure 5. Generate XML Files with DLinq and XLinq Literals.
The VbLinqDemo.sln sample project's CreateXmlFromJoins procedure creates this highly-structured, hierarchical XML document by joining the dbNwind.Orders DLinq entity with elements of six related XDocument XLinq objects. It's equally easy to join other application objects, XDocuments, and DataContext entities.