Posted: Sun May 12, 2013 9:25 pm Post subject: where condition for XMLNSC element
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.
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
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