Posted: Mon Apr 07, 2003 6:35 am Post subject: Filtering XML messages
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?
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'.
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