ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   export xml source mapping (https://www.excelbanter.com/excel-programming/378858-export-xml-source-mapping.html)

[email protected]

export xml source mapping
 
I would like to export my excel worksheet to xml. For example, my
excel data looks like this.

Color Grade
Red A
Blue C
Green B

And I would like the XML to look like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?
<colorGradeTable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<color <valueRed</value </color
<grade <valueA</value </grade
<color <valueBlue</value </color
<grade <valueC</value </grade
<color <valueGreen</value </color
<grade <valueB</value </grade
</colorGradeTable

But, when I try to map the worksheet data to the source file it will
only map the single items, not a list of items. For example, I can get
example for Red A.


[email protected]

export xml source mapping
 
I found the answer in another group. You need to use the XML Addin
available from the microsoft website link below.

http://www.microsoft.com/downloads/d...displaylang=en

http://msdn.microsoft.com/library/de...LToolAddin.asp

wrote:
I would like to export my excel worksheet to xml. For example, my
excel data looks like this.

Color Grade
Red A
Blue C
Green B

And I would like the XML to look like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?
<colorGradeTable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<color <valueRed</value </color
<grade <valueA</value </grade
<color <valueBlue</value </color
<grade <valueC</value </grade
<color <valueGreen</value </color
<grade <valueB</value </grade
</colorGradeTable

But, when I try to map the worksheet data to the source file it will
only map the single items, not a list of items. For example, I can get
example for Red A.




All times are GMT +1. The time now is 09:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com