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 » how to find a certain element?

Post new topic  Reply to topic
 how to find a certain element? « View previous topic :: View next topic » 
Author Message
gechu
PostPosted: Thu Nov 10, 2011 7:07 am    Post subject: how to find a certain element? Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

Hi,

I have a tree structure that may look like this

Code:

A
A
A B A
A   A
A   A
A   A B A
A
A B A B A
    A   A
    A   A
    A   A B A
    A   A   A
    A
    A B A B A



Each "A" contains one element named <partNo>, and I don´t know how many levels any "A" has. The unpredictible structure above is already built in my OutputRoot.

PROBLEM
I need to locate a certain "A" where <partNo> equals a certain value because I need to add more elements to that particular "A".

Here I´ve come up with these perhaps (im)possible solutions:

1. Use SELECT to locate relevant "A" - but can SELECT return a dynamic field reference to my "A" of interest?

2. Use a recursive function which traverses the entire OutpurRoot tree.

3. ?

Thanks,
Erik
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Nov 10, 2011 7:41 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Sounds like a job for a JavaCompute node with some XPath.
Back to top
View user's profile Send private message
gechu
PostPosted: Tue Nov 15, 2011 6:04 am    Post subject: Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

Thanks for the feedback. Not very comfortable with java in the broker so I went the ESQL recursive function path.

/Erik
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how to find a certain element?
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.