XML to Excel component
The XML to Excel component provides a direct conversion from the XML format to an Excel document.
Basic configuration
The XML to Excel component has the following basic configuration options:
Include header
Options
yes
(default)no
Description
This option allows you to determine whether to include a header in the Excel output.
Example
Notice the difference in the first line in the Excel. When yes
is selected, a header line is added. When no
is selected, no header line is added.
Furthermore, note that the Excel output has the foods
worksheet opened.
- Source XML
- Excel - 'no' is selected
- Excel - 'yes' is selected
<?xml version="1.0" encoding="UTF-8"?>
<breakfast_menu>
<food>
<name>food1</name>
<price>1</price>
<description>desc1</description>
</food>
<food>
<name>food2</name>
<price>2</price>
<description>desc2</description>
</food>
<food>
<name>food3</name>
<price>3</price>
<description>desc3</description>
</food>
</breakfast_menu>
"food1","1","desc1"
"food2","2","desc2"
"food3","3","desc3"
"name","price","description"
"food1","1","desc1"
"food2","2","desc2"
"food3","3","desc3"
Include index column
Options
yes
no
(default)
Description
This option allows you to determine whether to include an index column in the Excel output.
Remark
When this option is set to yes
, the index column will always be the first column, and the line numbers will always be without quotes.
Example
Notice the difference in the first column in the Excel. When no
is selected, no index column is added. When yes
is selected, an index column is added.
Furthermore, note that the Excel output has the foods
worksheet opened.
- Source XML
- Excel - 'no' is selected
- Excel - 'yes' is selected
<?xml version="1.0" encoding="UTF-8"?>
<breakfast_menu>
<food>
<name>food1</name>
<price>1</price>
<description>desc1</description>
</food>
<food>
<name>food2</name>
<price>2</price>
<description>desc2</description>
</food>
<food>
<name>food3</name>
<price>3</price>
<description>desc3</description>
</food>
</breakfast_menu>
"name","price","description"
"food1","1","desc1"
"food2","2","desc2"
"food3","3","desc3"
"line","name","price","description"
1,"food1","1","desc1"
2,"food2","2","desc2"
3,"food3","3","desc3"