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 » Splitting file with XML messages using IIB capabilities

Post new topic  Reply to topic
 Splitting file with XML messages using IIB capabilities « View previous topic :: View next topic » 
Author Message
Angshuman
PostPosted: Tue Apr 15, 2014 6:48 am    Post subject: Splitting file with XML messages using IIB capabilities Reply with quote

Apprentice

Joined: 30 Apr 2009
Posts: 29

Hi,

We have a requirement to split a XML(read from file) and propagate to target.
XML structure will look like

Code:

<a>
   <b>
        <c>d</c>
        <c>e</c>
        <c> f</c>
   </b>
</a>


Target should receive 3 messages here from segment <c>.


My question is
Quote:
Is there any inbuilt capability in IIB to perform it using FileRead node


I can do the split using XSLT/ ESQl/JAVA. File size being big, wanted to confirm if it is a good idea to perform the split in IIB?
Does it provides any inbuilt feature?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Apr 15, 2014 6:56 am    Post subject: Re: Splitting file with XML messages using IIB capabilities Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Angshuman wrote:
Target should receive 3 messages here from segment <c>.


Formatted how?

Angshuman wrote:
My question is
Quote:
Is there any inbuilt capability in IIB to perform it using FileRead node


Why a FileRead not a FileInput?

Angshuman wrote:
I can do the split using XSLT/ ESQl/JAVA. File size being big, wanted to confirm if it is a good idea to perform the split in IIB?


There's specific advice in the InfoCenter about handing large files.

Angshuman wrote:
Does it provides any inbuilt feature?


You mean "does it have a 'split the file up how I want' button"?

No

It can't possibly know how you want the file parsed or the output formatted.

You can certain use the inbuilt faciltites it does have to achive this in a very few lines of ESQL or even (depending on output format) get the Mapping node to do the work for you. I'll leave others to speak on Java & XSLT.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Apr 15, 2014 6:57 am    Post subject: Re: Splitting file with XML messages using IIB capabilities Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

Angshuman wrote:
Target should receive 3 messages here from segment <c>.

My question is
Quote:
Is there any inbuilt capability in IIB to perform it using FileRead node


I can do the split using XSLT/ ESQl/JAVA. File size being big, wanted to confirm if it is a good idea to perform the split in IIB?
Does it provides any inbuilt feature?

Use a file read node if you like

I think IIB is a good idea for your task!

I would use ESQL and PROPAGATE (TO ...) "RETURN FALSE" to create the individual messages
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Apr 16, 2014 1:13 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Use a file read node if you like
Sometimes FileRead is the correct solution, but not in this case.

The only way I know to do this efficiently is to use the technique described here: http://www.ibm.com/developerworks/websphere/library/techarticles/0505_storey/0505_storey.html

However, please remember that this article was written many years ago. Do not use the MRM parser for processing the XML input - XMLNSC is the correct choice.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Splitting file with XML messages using IIB capabilities
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.