Excel to XML
Here, I am gonna show how to convert the excel document into XML format. It's simply easy.
Required Tools:
Step 1: Create a schema based XML source. It defines the structure of the XML file. Code : Copy and paste this code and change as per your needs.
Step 2: Save the Notepad with the name of Schema.xml, it can be any name but the extension should be .xml
Step 3: Open Excel sheet and make sure the developer tab is enabled and visible in the top tabs like below. If the developer tab is not available, then click on file tab and go to options and go to Customize Ribbon then filter “All Tabs”. Finally, choose Developer Tab and add it.
Step 4: Open the Excel which you want to convert into xml Note: XML schema should be matched with the columns specified here. Step 5: Click on the Source in the developer Tab
Step 6: Choose XML Maps and add the Schema file and give ok.
Step 7: Map the columns by dragging the XML record name to excel columns
Step 8 : Export the file as XML

Required Tools:
- Notepad
- Excel
Step 1: Create a schema based XML source. It defines the structure of the XML file. Code : Copy and paste this code and change as per your needs.
Step 2: Save the Notepad with the name of Schema.xml, it can be any name but the extension should be .xml
Step 3: Open Excel sheet and make sure the developer tab is enabled and visible in the top tabs like below. If the developer tab is not available, then click on file tab and go to options and go to Customize Ribbon then filter “All Tabs”. Finally, choose Developer Tab and add it.
Step 4: Open the Excel which you want to convert into xml Note: XML schema should be matched with the columns specified here. Step 5: Click on the Source in the developer Tab
Step 6: Choose XML Maps and add the Schema file and give ok.
Step 7: Map the columns by dragging the XML record name to excel columns
Step 8 : Export the file as XML
Comments
Post a Comment