ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » conversion of xls file to xml in message broker

Post new topic  Reply to topic Goto page 1, 2  Next
 conversion of xls file to xml in message broker « View previous topic :: View next topic » 
Author Message
sandip_gaikwad
PostPosted: Tue Jul 26, 2011 1:10 am    Post subject: conversion of xls file to xml in message broker Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

how to covert xls file into xml file in messahe broker plz give usefule sample link and usefule data
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Tue Jul 26, 2011 1:28 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

What have you tried so far?

First you'll need to understand the XLS format. What research have you dont into this?

If it were me i'd use something like the POI project from Apache.

And dont double post, that will just annoy people.
Back to top
View user's profile Send private message
sandip_gaikwad
PostPosted: Tue Jul 26, 2011 1:35 am    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

actually my confusion is that i m not able to know to set the delimiter or repeated delimiter property as such no specific format is there...?? pls help..
Back to top
View user's profile Send private message
Aldrine
PostPosted: Tue Jul 26, 2011 3:38 am    Post subject: Java Excel API - jexcelapi Reply with quote

Novice

Joined: 25 Jul 2011
Posts: 22
Location: India

sandip_gaikwad wrote:
actually my confusion is that i m not able to know to set the delimiter or repeated delimiter property as such no specific format is there...?? pls help..


I suggest you look into
http://jexcelapi.sourceforge.net/

It is a Jave package for xls. Incoporate it into Java Compute Node.[/url]
_________________
--
Aldrine Einsteen
Back to top
View user's profile Send private message
sandip_gaikwad
PostPosted: Tue Jul 26, 2011 4:09 am    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

thanx for your reply... but i want to do it through message broker.... pls reply as soon as possible...
Back to top
View user's profile Send private message
Aldrine
PostPosted: Tue Jul 26, 2011 4:21 am    Post subject: Reply with quote

Novice

Joined: 25 Jul 2011
Posts: 22
Location: India

sandip_gaikwad wrote:
thanx for your reply... but i want to do it through message broker.... pls reply as soon as possible...


Could give me some more information by what you mean as Through Message Broker? As utilizing a java Class would be still through Java Compute Node of WMB!
_________________
--
Aldrine Einsteen
Back to top
View user's profile Send private message
marko.pitkanen
PostPosted: Tue Jul 26, 2011 4:21 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

Do you want to process Microsoft Excel file and convert it's content to xml structure?

I'm afraid of that you can't do it through message set. You perhaps need to use java -compute node and some external libraries to do the magic --like the others have earlier advised.

--
Marko
Back to top
View user's profile Send private message Visit poster's website
sandip_gaikwad
PostPosted: Tue Jul 26, 2011 4:24 am    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

i dont have much knowledge about java... can we do with esql... if not then can u pls guide me in doing it through java compute node...
Back to top
View user's profile Send private message
sandip_gaikwad
PostPosted: Tue Jul 26, 2011 4:28 am    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

hi marco,
yes i want to convert microsoft excel file to text file... which libraries i need to incorporate.... or could u pls provide me with sample java code...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 26, 2011 4:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

export the XLS files as a CSV file, and then use a TDS message set to model it.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jul 26, 2011 9:36 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You should explain your requirement more clearly. Most people are assuming that you want to convert a .xls file to XML. I think you want to convert a comma-separated file to XML, based on this comment that you made in one of your posts: "actually my confusion is that i m not able to know to set the delimiter or repeated delimiter property as such no specific format is there.".

If I am correct, then you simply need to look at the CSV sample in the Samples Gallery.
Back to top
View user's profile Send private message
sandip_gaikwad
PostPosted: Tue Jul 26, 2011 8:57 pm    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

i have done csv to xml but my problem is i dont want to convert xls file to csv.... instead directly an xls file to xml.... pls help...
Back to top
View user's profile Send private message
Aldrine
PostPosted: Tue Jul 26, 2011 9:08 pm    Post subject: Reply with quote

Novice

Joined: 25 Jul 2011
Posts: 22
Location: India

@Sandip: There is no inherent option in WMB to convert xls to xml.

MY suggestion is to use a third party class to read anc convert the Excel entries into XML nodes using a DOM document Builder.

If you are using ESQL; i suggest u get a static method to do the above functionality and get the results as text over to ESQL.

As i previously suggested take a look at jexcelapi. It is quite simple.
Using it you can read the xls file and strip the data and If you have a java coder at your disposal ask him to convert the xls into xml using a DOM builder.

--
Aldrine Einsteen

Asking the same Question again and again doesn't make you look witty!
Just the contrary...
Back to top
View user's profile Send private message
j.f.sorge
PostPosted: Wed Jul 27, 2011 8:13 am    Post subject: Reply with quote

Master

Joined: 27 Feb 2008
Posts: 218

Maybe your question will be answered here
_________________
IBM Certified Solution Designer - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
sandip_gaikwad
PostPosted: Fri Jul 29, 2011 10:14 pm    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

please give me some useful link and hands on on the same the given link is not useful.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » conversion of xls file to xml in message broker
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.