Export Excel to XML with added string

90 views Asked by At

I have an Excel file that contains the column persons. In order to export this Excel sheet to XML I provided an XML schema that looks like this:

<members>
    <person></person>
</members>

If I export it to XML afterwards the XML looks like the following:

<members>
    <person>Bob</person>
</members>

Since since Bob is the only one in my table persons it means that everything worked. However I want the XML to look like this:

<members>
    <person><![CDATA[Bob]]></person>
</members>

I could adjust the output myself by running a macro before the export but I'm looking for a way to make the output XML look like that automatically. How can I archieve that? Thanks.

0

There are 0 answers