Author |
Message
|
sknaini |
Posted: Wed Jul 20, 2011 2:12 pm Post subject: Java compute node |
|
|
Newbie
Joined: 19 Jul 2011 Posts: 6
|
<MESSAGES
<MESSAGE>
<REQUEST>
</REQUEST?
<REQUEST>
</REQUEST?
<MESSAGE>
<MESSAGE>
<REQUEST>
</REQUEST?
<REQUEST>
</REQUEST?
<MESSAGE>
<MESSAGE>
<REQUEST>
</REQUEST?
<REQUEST>
</REQUEST?
<MESSAGE>
<MESSAGES/>
I need to find the cardinality of the REQUEST elements
later split the XML into each <MESSAGE/>
Since the message is a large size message can any one give sample for Java compute node. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jul 20, 2011 7:37 pm Post subject: Re: Java compute node |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 Location: LI,NY
|
sknaini wrote: |
I need to find the cardinality of the REQUEST elements
later split the XML into each <MESSAGE/>
Since the message is a large size message can any one give sample for Java compute node. |
Please clarify: which cardinality are you looking for: within the message tags or across message tags...
If you are looking for a cardinality across message tags you are SOL with parsing for big messages...
BTW why would you want to use cardinality when you can use references to walk the tree?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
sknaini |
Posted: Thu Jul 21, 2011 3:51 am Post subject: |
|
|
Newbie
Joined: 19 Jul 2011 Posts: 6
|
I need the total count of <REQUEST> Elements in the whole XML
also it is a large message and I have to split it to each <MESSAGE> and propogate to next queue that too using Java compute node. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 21, 2011 4:31 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
joebuckeye |
Posted: Thu Jul 21, 2011 4:59 am Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
|
sknaini wrote: |
I need the total count of <REQUEST> Elements in the whole XML
also it is a large message and I have to split it to each <MESSAGE> and propogate to next queue that too using Java compute node. |
Why Java?
This would be very simple in ESQL.
Just setup a reference to the first REQUEST and then loop until there are no more. You can count them as you loop. |
|
Back to top |
|
 |
|