Hi Madhu and Syed...
The easiest way to get Excel to XML is with an XML Schema (XSD) file. The XSD basically defines that the output of your XML file will ultimately look like. The goal is that you already have data in Excel... but now you need to format it into an XML style of output.
The XML Schema (.XSD) file sort of lays out a template for your final XML file. It defines data fields and their formatting. No actual data goes in this schema file... it's just an outline which will eventually be populated with actual data. You can do your own research on XSD files online. Armed with a correctly formatted XSD, you can use the XML tools embedded within Excel.
If you have Excel 2013, you need to enable the Developer tab. The XML commands are located there. Select Source then your XSD template. You'll be able to view your template in the right hand panel of Excel (which will populate with fields defined in your XSD file). There's some Excel magic that happens to drag and drop data from your XML template into the Excel spreadsheet but there are several good tutorials on YouTube which can help. Here's one video that sort of gives an overview. It assumes you already have an XSD file to work with.
http://www.youtube.com/watch?v=klbi56fW0k4
The general technique is:
- Create the XSD file
- Import the XSD as a source file in Excel (Developer Tab)
- Drag/Drop data from XSD onto a blank Excel worksheet
- Grab Excel data to populate the XSD worksheet
- Export the XML file
- Read XML file into Creo Cabling
Creating the XSD is the most time consuming and troublesome part of this procedure. You can look up XML Schema Creation on W3schools.com. They have pretty great tutorials for several programming languages including XML. I think if you read their pages, within an hour or so you'd be up and running.
This entire process can get very tricky. You'll find yourself dumping out many XML files and attempting to import them into Creo successfully. You have to work carefully and slowly. My advice would be to start with something basic- like spools. Get those to import properly... and then move on to more complex parts of the XML like connectors. Start small while you learn what Creo needs... and build from there.
This could be the topic of several training videos or several chapters of a Creo Cabling book. There's too many nuaunces to be able to give a complete answer in the context of a PTC Community post but I hope this gives you something to go on.
As always, feel free to ask if you get stuck or need additional advice.
Best regards,
-Brian