473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Transform XML in Excel or Excel to XML

Can anyone let me know if you have an idea what exactly I can use to create a simple page that could a) hand an excel file to and get xml, b) hand xml and get an excel file. I Kno wthat .NET or ASP might have some ways to do it.

Thanks
Nov 12 '06 #1
1 2594
I am not sure on how to take an excel file and transform it into xml. But if you want to take an existing xml file and transform it into XML, then you have to create a xsl file with a looping statement and then attach the xsl file to your xml file.

Here is an example of your xml file
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<Root>
<Element1>A</Element1>
<Element2>B</Element2>
<Element3>C</Element3>
</Root>
Here is an example of your xsl file
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<table border="1">
<xsl:for-each select="StoreExport/Products/Product">
<tr>
<td><xsl:value-of select="Element1"/></td>
<td><xsl:value-of select="Element2"/></td>
<td><xsl:value-of select="Element3"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Nov 20 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Peter Paskoff | last post by:
how do i translate this table: tag stunden projekt_nr 3 7,75 7192500 4 7,75 7192500 5 7,75 2118310 6 7,75 2118310 7 3 2118310 7 3 7192500 10 6 2118310
7
by: Mike | last post by:
Please help. I am using object.quit in an attempt to quit an excel application that I started with createobject ("Excel.Application"). The code executes, but does not stop the application. When...
0
by: glen | last post by:
I used the below code to transform xml to a spreadsheet using a .xsl file. It works great; problem is I want to transform several recordset to xml to multiple worksheets in the workbook. Should I...
2
by: Alvin Bruney | last post by:
anybody know how to launch desktop excel from a webpage and feed it either a dataset or a file? i've got MS sample code but it aint compiling with the office 10 library. i wonder if they changed...
6
by: Rich Wallace | last post by:
Hi all, I have a VB app that runs and manages individual XLS files within a single COM object. Upon processing the final fie, I attempt to close out the EXCEL object and release it using...
5
by: Tim Frawley | last post by:
I created a .NET Com Class object for use in ASP reports to export database results directly to Excel. I have it all working just find but I cannot get the Excel process to go away after the job...
2
by: Fabio Goncalves | last post by:
Hi Guys, I do need to transform some excel spreadsheets into xml files through an automated process. Is it possible to do it using XSLT? Could anybody give me any direction? Cheers, ...
7
by: Alan Roberts | last post by:
Can someone please explain the following for me... I am trying to link to a .NET DLL from Excel. Excel needs to pass a reference to itself to the DLL and then the DLL needs to perform some work...
1
by: farhana | last post by:
Hi experts, Need ur help and advice, My excel file is for user to upload their product listing. I have created a macro programming in the excel file. To use the file, user need to download...
0
by: CD Tom | last post by:
I've build a query that I then transfer to Excel using the docmd.TransferSpreadsheet the transfer works just fine, but when I open the file in Excel (2007) I get a error saying the file is in a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.