|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
filter node |
« View previous topic :: View next topic » |
Author |
Message
|
asif_0611 |
Posted: Mon Oct 10, 2005 7:54 am Post subject: filter node |
|
|
Newbie
Joined: 06 Jul 2005 Posts: 8
|
the following code for filter node is valid with OR?
IF
(Body."author"."book"."name".(XML.Attribute)"type"='john g')
OR
(Body."author"."book"."name".(XML.Attribute)"type"='jay r')
THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
thanks
asif |
|
Back to top |
|
 |
JT |
Posted: Mon Oct 10, 2005 8:18 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
The OR statement is fine,
But I think there's a problem with the values you've assigned to your XML Attributes. Perhaps I'm wrong, but I didn't think you could have a space in an attribute value. |
|
Back to top |
|
 |
nathanw |
Posted: Mon Oct 10, 2005 8:29 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
unless the values are set in "" as far as i can see
eg
"john g" |
|
Back to top |
|
 |
javaforvivek |
Posted: Tue Oct 11, 2005 2:38 am Post subject: |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
Have you tried to run this code? Has it given any errors? or unexpected behaviours? _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|