Jump to content
Sign in to follow this  
newem

Generating an XML from Excel(How to split multiple references in the creation process of an XML)

Recommended Posts

I have the following problem. My company "lost" the .xsd file they used to export products from an Excel file to an XML file, and now I tried to re-write it myself but I came to a problem of how to split a field that has values separated by commas.

Here is an example from the Excel file. http://i.stack.imgur.com/KICvP.jpg

It's the second to last field named masterreference. Now the problem is writing an .xsd file that will through the Excel XML export come up with the following structure:

<universalld>0AF1AA0F18FB44F5C125701800445CC3</universalld> <brand>ACEC</brand> <type>Canister</type> <commercialname></commercialname> <model>AT 81, 82</model> <importance>0</importance> <diameter>32 mm</diameter> <masterreferences> <masterreference>FL 11</masterreference> <masterreference>T 40</masterreference> </masterreferences> <productpictureno></productpictureno> </cleaner>

 

This is the .xsd I have right now. http://i.stack.imgur.com/YbIew.png

Can someone help me?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...