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 » where condition for XMLNSC element

Post new topic  Reply to topic
 where condition for XMLNSC element « View previous topic :: View next topic » 
Author Message
ydeonia
PostPosted: Sun May 12, 2013 9:25 pm    Post subject: where condition for XMLNSC element Reply with quote

Acolyte

Joined: 29 Oct 2012
Posts: 74

Hi

I have a select query for XMLNSC domain

Code:
      SET OutputRoot.XMLNSC.root.row[rowCnt] = THE (SELECT THE(SELECT C.*:Description AS TyreBrandName FROM T.*:Classification[] AS C
                    WHERE C.(XMLNSC.Element)Description='MRF' AND C.(XMLNSC.Attribute)Type = 'BRAND'  ) AS product_Info
                FROM itemMaster.*:ItemMasterHeader[] AS T );


This provide me correct result what I want . But my requirement is like I want to fetch the value in
Code:
 C.(XMLNSC.Element)Description

The MRF is harcoded one. How can I make it .

If I make where condition like

Code:
WHERE C.(XMLNSC.Element)Description AND C.(XMLNSC.Attribute)Type = 'BRAND'
it says

The left hand operand to the '&1' operator must evaluate to a boolean value.

My part of xml

Code:
     <Classification Type="BRAND">
          <Codes>
            <Code>002</Code>
          </Codes>
        </Classification>
        <Classification Type="BRAND">
          <Description>MRF</Description>
        </Classification>
        <Classification>

So how can I make where condition. I am making this beacuse the conditon C.(XMLNSC.Attribute)Type = 'BRAND' always satisfy and it search for description element in here
Code:

 <Classification Type="BRAND">
          <Codes>
            <Code>002</Code>
          </Codes>
        </Classification>
So its find nothing and comes out.It dont go down to see another classification. I want it to make second condition to see for element too.

Thanks all.
Back to top
View user's profile Send private message
Esa
PostPosted: Sun May 12, 2013 10:36 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Don't SELECT. Examine the message by moving a reference.
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 » where condition for XMLNSC 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.