|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Referencing an XML Node without knowing its parent/s |
« View previous topic :: View next topic » |
Author |
Message
|
pmbsa |
Posted: Fri Sep 14, 2001 12:15 am Post subject: |
|
|
Novice
Joined: 06 Aug 2001 Posts: 16
|
Hi, does any body know if its possible to reference an XML tag without knowing or caring what or how many parents it has
e.g
23 My Address
Some Street
12345
012024587645
In the above, I could obviously reference 'Code' by InputBody.Message.Address.Code
or InputBody.Message.*.Code or things along those lines, what I would need to do is reference all tags called 'Code' (If there are more than one) without having to know how many parents there or what the parents are.
I would need to know how many tags with that name exist as well
anyway, enough rambling, any help would be appreciated
I am using MQSI v2.0.1
Thanks
Paul |
|
Back to top |
|
 |
hegdevinu |
Posted: Sun Sep 16, 2001 10:53 pm Post subject: |
|
|
Newbie
Joined: 09 Aug 2001 Posts: 9 Location: Bangalore, India
|
Hi,
Using *, CARDINALITY and arrays ..we can solve Unkown parent problem.
* -> gives you path independency
CARDINALITY -> CARDINALITY function to determine how many instances of a repeating field there are.
arrays -> can be used to reference particular instance of repeating field.
I can't try as i don't have access to MQSI right now.
Hope this helps.
Cheers,
hegdevinu |
|
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
|
|
|
|