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 » Filtering XML messages

Post new topic  Reply to topic
 Filtering XML messages « View previous topic :: View next topic » 
Author Message
bamoore
PostPosted: Mon Apr 07, 2003 6:35 am    Post subject: Filtering XML messages Reply with quote

Newbie

Joined: 07 Apr 2003
Posts: 1

I have a message flow that reads an XML message off a queue. I'm attempting to use a Filter node to filter messages using and XML attribute contained in the Header of the message. The Filter node is not filtering out any messages. I would like to filter out all messages that have a Header.Action.Source XML attribute value of "SADIE".

Here is the filter statement that I'm currently using:
"Body"."Envelope"."Header".Action.(XML.Attribute)Source <> 'SADIE'

Here is an extract of the XML message:
<?xml version="1.0"?>
<Envelope>
<Header>
<Publisher>People Directory</Publisher>
<PersonId>622</PersonId>
<Action Code="CHANGE" Source="SADIE" DateTime="2003-03-14T09:00:10Z"/>
</Header>
<Body>
<Person Data="OLD">
<FullName>Hammond,Stephen C</FullName>
<LastName>Hammond</LastName>

Can someone look at the following code in my Filter node and see what I may be doing wrong?

Thanks,
_________________
Barry
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Apr 07, 2003 7:12 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I got the message propogated to the false terminal when I put your code into a filter node and passed in your example message, and propogated to the TRUE terminal when I changed the value from 'SADIE' to 'TEST'.
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 » Filtering XML messages
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.