Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml tranformation using xsl

Status
Not open for further replies.

candydu80

Technical User
Aug 21, 2008
4
US
Hi, I am new to xml so forgive me if my question is stupid. I have an xml file that I would like to read into excel with the basically the same format as xml has, tags in one column and the matching values in the next column. Is there a generic xsl codes that does this? You help is very much appreciated. My xml file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl"href="transform.xsl"?>
- <cw:vessel version="1.07.0054" creationDate="2008-08-07" xmlns:cw="urn:pressureVessel">
- <pressureVessel>
- <revisions>
- <revision>
<revNumber>0</revNumber>
<revDate>2007-07-26</revDate>
<operator>abc</operator>
<notes>New vessel created </notes>
</revision>
</revisions>
- <generalVesselInfo>
<identifier>v77892</identifier>
<location />
<purchaser />
<service />
<tagNumber />
- <!-- Design Code Info -->
<designCode>ASME Section VIII Division 1</designCode>
<designCodeEdition>2004 A06 Addenda</designCodeEdition>
- <!-- Vessel Data -->
<units>S.I.</units>
<orientation>Vertical</orientation>
<tangentToTangentLength units="mm">5900.00</tangentToTangentLength>
<structureHeight units="mm">14674.38</structureHeight>
<outerDiameter units="mm">5140.00</outerDiameter>
<datumOffsetFrom>Bottom Shell Seam</datumOffsetFrom>
<datumOffset units="mm">0.00</datumOffset>
<datumElevation units="mm">0.00</datumElevation>
</generalVesselInfo>
</pressureVessel>
</cw:vessel>
 
I would say just transform it to csv and then load it into excel. Can never say csv is out-dated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top