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 » Using A Filter Node

Post new topic  Reply to topic
 Using A Filter Node « View previous topic :: View next topic » 
Author Message
gowdy
PostPosted: Wed Sep 12, 2001 7:45 am    Post subject: Reply with quote

Apprentice

Joined: 17 Jul 2001
Posts: 29
Location: Bournemouth, UK

Hi

I want to use a filter node to check the contents of an XML tag. If I am checking for the contents do I use single or double quotes in the ESQL
eg InputBody.MyMessage.TagA = 'Yes'
or
InputBody.MyMessage.TagA = "Yes"

Secondly, if I want to check if it is empty do I need to put a space(or spaces) between the (single or double) quotes?
eg InputBody.MyMessage.TagA = ""
or
InputBody.MyMessage.TagA = " "

Apologies for the simple standard of the question, but very new to using MQSI.

Kind regards

Mark
Back to top
View user's profile Send private message Send e-mail
MVO
PostPosted: Thu Sep 13, 2001 10:29 am    Post subject: Reply with quote

Centurion

Joined: 09 Sep 2001
Posts: 131

1) Use single quote
2) To check for empty string use either
a) LENGTH function e.g. LENGTH(Root.XML.Field1)=0
b) ROOT.XML.Field1 IS NULL
Back to top
View user's profile Send private message
Tabraham
PostPosted: Fri Sep 14, 2001 9:34 am    Post subject: Reply with quote

Newbie

Joined: 16 May 2001
Posts: 4
Location: Dallas, Texas

Also, you use Body.xxxx not InputBody.xxxx.
Back to top
View user's profile Send private message Send e-mail
Outdesign
PostPosted: Mon Sep 17, 2001 2:52 am    Post subject: Reply with quote

Apprentice

Joined: 16 Sep 2001
Posts: 38
Location: Hampshire, UK

b) ROOT.XML.Field1 IS NULL

The following is incorrect.
IS NULL will check to see if an element exists, not it's contents.
The case is also incorrect, it should reference "Root" not "ROOT".

To check if an element is empty, you can use option 2a) but this uses
a function (LENGTH) or you can use simply use the following syntax :
/* note, two single quotes next to each other */
Body.MyMessage.TagA = ''
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using A Filter Node
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.