Export excel data to xml format

uakash7

New Member
Joined
Apr 1, 2019
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi, I want to covert data in excel file to xml format (Developer - Export option) ExportError.pngbut getting this error message - "Cannot save or export XML data. The XML maps in this workbook are not exportable." Can you please help me to convert this excel data to xml format using Excel tool or VBA. Enclosing the error screenshot and xml mapping below -

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DataImport>
<forecast>
<Entity>700</Entity>
<data>
<date>
<day>19</day>
<month>1</month>
<year>2021</year>
</date>
<period recID="7001">
<time>8:00</time>
<ItemSold>19</ItemSold>
<Price>219</Price>
</period>
<period recID="7001">
<time>8:30</time>
<ItemSold>21</ItemSold>
<Price>219</Price>
</period>
<period recID="7001">
<time>9:00</time>
<ItemSold>23</ItemSold>
<Price>219</Price>
</period>
<period recID="7001">
<time>9:30</time>
<ItemSold>26</ItemSold>
<Price>219</Price>
</period>

</data>
</forecast>
<forecast>
<Entity>701</Entity>
<data>
<date>
<day>20</day>
<month>1</month>
<year>2021</year>
</date>
<period recID="7002">
<time>8:00</time>
<ItemSold>20</ItemSold>
<Price>220</Price>
</period>
<period recID="7002">
<time>8:30</time>
<ItemSold>23</ItemSold>
<Price>220</Price>
</period>
<period recID="7002">
<time>9:00</time>
<ItemSold>25</ItemSold>
<Price>220</Price>
</period>
<period recID="7002">
<time>9:30</time>
<ItemSold>28</ItemSold>
<Price>220</Price>
</period>
<period recID="7002">
<time>13:00</time>
<ItemSold>31</ItemSold>
<Price>220</Price>
</period>
</data>
</forecast>
</DataImport>
 

Some videos you may like

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Watch MrExcel Video

Forum statistics

Threads
1,127,861
Messages
5,627,315
Members
416,239
Latest member
Counselor85027

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top