|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Splitting file with XML messages using IIB capabilities |
« View previous topic :: View next topic » |
Author |
Message
|
Angshuman |
Posted: Tue Apr 15, 2014 6:48 am Post subject: Splitting file with XML messages using IIB capabilities |
|
|
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 |
|
 |
Vitor |
Posted: Tue Apr 15, 2014 6:56 am Post subject: Re: Splitting file with XML messages using IIB capabilities |
|
|
 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 |
|
 |
mqsiuser |
Posted: Tue Apr 15, 2014 6:57 am Post subject: Re: Splitting file with XML messages using IIB capabilities |
|
|
 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 |
|
 |
kimbert |
Posted: Wed Apr 16, 2014 1:13 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|