Generate nested xml form Country and corresponding states and download
Contry and state table in sql server has foreign key relationship. How to generate and download country and coresponding states in nested xml format?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 1, 2021, 1:38 AM EDT
Mohsin AzamRank #1,123 · 1.6K reputationPosted Mar 31, 2021, 1:42 AM EDT
After getting the record ,you can use Linq to XML where you can create your own XML Formatted Data.
plz refer : https://docs.microsoft.com/en-us/dotnet/standard/linq/linq-xml-overview