In C#, I'm creating an XML file from a DataTable using dataTable.WriteXml(filePath), and get the following:
<?xml version="1.0" encoding="utf-8" ?>
<ExperienceProfiles>
<ExperienceProfile>
<Col1>blah</Col1>
<Col2>4ed397bf-a4d5-4ace-9d44-8c1a5cdb0f34</Col2>
</ExperienceProfile>
</ExperienceProfiles>
How can I get it to write the XML in the following format?:
<?xml version="1.0" encoding="utf-8" ?>
<ExperienceProfiles>
<ExperienceProfile Col1="blah"
Col2="blah" ></ExperienceProfile>
</ExperienceProfiles>