I have some data in an excel table in a format similar to the one below.
Colum1_Heading Column2_Heading
a 1
b 2
c 3
I am trying to convert the data in this table to XML, I will always have the same number of columns but an indeterminate number of rows.
The XML format is something like this
<?xml version="1.0" encoding="utf-8"?>
<root>
<tag1>
<tag2>
a - 1,
b - 2,
c - 3
</tag2>
</tag1>
</root>
So I think it should be fairly simple. So far I've started writing some code that creates a writeable string which I would then write to a new XML file, but I'm pretty new to VBA so I'm still researching a bunch on the internet. I've inputted the header and the beginning and end tags since those will always be the same. My question is how to read the rows of the table and write them to the XML in a format shown above. Any help would be appreciated. Please let me know if you need any additional info.
CDATAblock?