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 » Referencing an XML Node without knowing its parent/s

Post new topic  Reply to topic
 Referencing an XML Node without knowing its parent/s « View previous topic :: View next topic » 
Author Message
pmbsa
PostPosted: Fri Sep 14, 2001 12:15 am    Post subject: Reply with quote

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
View user's profile Send private message
hegdevinu
PostPosted: Sun Sep 16, 2001 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Referencing an XML Node without knowing its parent/s
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.