Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
and NOT this (as they are now)
<?xml version="1.0" encoding="utf-8" ?> <Items> <Item Name="Afghanistan" ID="296" /> <Items>
My export Code is this;
<?xml version="1.0" standalone="yes"?> <Items> <Item> <ID>296</ID> <Name>Afghanistan</Name> </Item>
What am I missing? Please advise?
var adapter4 = new SqlDataAdapter("SELECT [Name],[ID],[PID1] FROM dbo.Countries where PID1 = 14 ORDER BY Name ASC", connection); var dt4 = new DataTable("Item"); adapter4.Fill(dt4); DataSet ds4 = new DataSet("Items"); ds4.Tables.Add(dt4); ds4.WriteXml("C:\\inetpub\\wwwroot\\XR8\\App_Data\\XML\\Countries.xml", System.Data.XmlWriteMode.IgnoreSchema);
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.