473,488 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

xml to excel

2 New Member
I have an xml card which is an import file to one application. I want to convert this xml to xls including all its logic. I tried several xml->xls converters but the reason is always different and I guess it does not shows the real structure because if I convert back this excel to xml it differs from original one. Does anybody have any idea how could be this problem solved.
You can check this xml:http://tripx.uw.hu/testxml/colour.zip
Thanks, Adam
Apr 3 '07 #1
6 3424
dorinbogdan
839 Recognized Expert Contributor
Hi,

Did you solve the problem? or still need the answer.

If you convert the XML into HTML, and view in Internet Explorer as table format, is not it fine?
Or it's required in Excel format?

Thanks,
Dorin.
Apr 5 '07 #2
teradam
2 New Member
Hi, thanks for the response but unfortunately your idea does not solve my problem. The problem is that I have to edit document in excel so I must see the real structure of sheets and tables to be able add new data to excel file and convert it back to xml, and finally import it to the application. Thanks, Adam
Apr 5 '07 #3
dorinbogdan
839 Recognized Expert Contributor
I think the best solution is to write a macro in Excel that will read the XML file using Microsoft.XMLDOM (or MSXML) object and fill the sheet as desired.
Small tip:
Expand|Select|Wrap|Line Numbers
  1. Set xmldoc = CreateObject("Microsoft.XMLDOM")
  2. xmldoc.Load "c:\xmldoc.xml"
  3. Set doc = xmldoc.documentElement 
  4.  
  5. For Each node In doc.childNodes
  6.        'put some values in some cells
  7. Next 
On export, need a reversed method.
See Export Excel to XML.
Apr 5 '07 #4
Badrimahesh
4 New Member
hi
i am Badri, i want a script (.sh or .pl ) that convert .csv file into xml
could you pls help me

for example:
Pls find the .csv file below

N,2380539,B, 34100.00,56.5503,MXN,0040415010,0040415515,MXN,1.0 0,MXN,05022007,05072007,1928365.23,5785.10,0,19341 50.33,1
928365.23,420, , ,13212200114000,13212200114001,
,N,B0P72G5,B, 90000.00,40.3994,BRL,6206736693,0040415515,BRL,1.0 0,BRL,05022007,05072007,3635946.00,9271.66,1272.58 ,364649
May 5 '07 #5
dorinbogdan
839 Recognized Expert Contributor
It seems that you need scripting help, so please post your question to the forum that matches your language.

Thanks,
DOrin.
May 7 '07 #6
Badrimahesh
4 New Member
It seems that you need scripting help, so please post your question to the forum that matches your language.

Thanks,
DOrin.

hi dorinbogdan,

i don't want any script,
i want like how to convert .csv file to xml,
Is there any commands or any syntax to convert .csv file to xml
pls do the need full
May 7 '07 #7

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

Similar topics

13
35477
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
3
20270
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
6
12467
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
14
5731
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
22
15311
by: Howard Kaikow | last post by:
There's a significant problem in automating Excel from VB .NET. Reminds me of a problem I encountered almost 3 years ago that was caused by the Norton Auntie Virus Office plug-in. Can anybody...
9
2804
by: Anthony | last post by:
To me, creating Excel 2003 spreadsheets programmatically via VB.NET hasn't really changed since the days of VB6. That is, I'd do something similar to this Code: Dim ExcelApp As...
7
2413
by: Alain \Mbuna\ | last post by:
Hi everybody. In my program I have some data that is calculated after some input from the user. I have written some code that opens an Excel workbook, with 5 worksheets and the calculated data...
16
2668
by: alexia.bee | last post by:
Hi all, In some weird reason, excel instance won;t die if i remove the comment from 4 lines of setting values into struct. here is a snipcode public...
9
4517
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
0
6967
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
7142
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,...
1
6847
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
7352
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4875
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.