IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: sanketgroup
About
User Name: sanketgroup
Forum Rank: Newbie
Real Name:
Location US
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Saturday, January 2, 2021
Last Visit: Sunday, January 3, 2021 5:34:23 AM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Excel to XML help
Posted: Sunday, January 3, 2021 5:34:22 AM
Hello,
I want to convert Excel data to XML format as shown below.
My excel file has data something like below.
+----+--------+--------+------+-------+
| ID | Name | ItemSr | Item | Price |
+----+--------+--------+------+-------+
| 1 | Peter | 1 | A | 100 |
| 1 | Peter | 2 | B | 200 |
| 2 | Thomas | 1 | A | 300 |
+----+--------+--------+------+-------+


And I want to convert it to XML like below.

Code:
<SampleMESSAGE
    xmlns:UDF="SampleUDF">
    <Voucher.List>
        <VOUCHER>
            <Name>Peter</Name>
            <Item.LIST>
                <Item>A</Item>
                <Amount>100</Amount>
                <Item>B</Item>
                <Amount>200</Amount>
            </Item.LIST>
        </VOUCHER>
        <VOUCHER>
            <Name>Thomas</Name>
            <Item.LIST>
                <Item>A</Item>
                <Amount>300</Amount>
            </Item.LIST>
        </VOUCHER>
    </Voucher.List>
</SampleMESSAGE>
   
   


Please help.

Thanks

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.