|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to find the number of child elements |
« View previous topic :: View next topic » |
Author |
Message
|
Yanghui |
Posted: Fri Sep 06, 2002 6:06 am Post subject: How to find the number of child elements |
|
|
Disciple
Joined: 08 May 2002 Posts: 151 Location: Dublin, Ireland
|
Hi,
Does anybody know a good way to find the number of child elements? I need the number to control my loop.
I am not happy my current solution.
Thanks a lot.
-Yanghui |
|
Back to top |
|
 |
kirani |
Posted: Fri Sep 06, 2002 8:11 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Yanghui,
What is your current solution?
Code: |
<Data>
<address><city>torrance</city><state>ca</state></address>
<address><city>tampa</city><state>fl</state></address>
<address><city>milwaukee</city><state>wi</state></address>
<address><city>chicaho</city><state>il</state></address>
</Data>
|
Given above input message, do u want to know the number of all child elements or only immediate elements of <Data> tag? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
sgopal |
Posted: Fri Sep 06, 2002 3:50 pm Post subject: |
|
|
Acolyte
Joined: 30 Jul 2002 Posts: 63
|
Hi Yanghui,
Have you tried using field function CARDINALITY.
Please refer ESQL Reference for more information. I hope that might solve your problem.
Gopal |
|
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
|
|
|
|