Export each row as a XML file, using column headings as xml field names

hebgphsx

New Member
Joined
Dec 4, 2019
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have an excel spreadsheet where row 1 is headers, then all the rows below are the data. What I need to do is export each row starting with row 2 to an individual file, name the file the value in column A for that row, but include all columns (including A) in the XML output where the field names in the XML that hold the values are the names of the header from row 1.
Is that even possible in Excel? I tried to export the whole thing as a xml spreadsheet, but that wasn't helpful as it just listed everything as <Row> and <Cell> without meaningful stuff like the column headings inside the <>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,217,447
Messages
6,136,679
Members
450,024
Latest member
Beagle263

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top