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 » How do I reference this............................

Post new topic  Reply to topic
 How do I reference this............................ « View previous topic :: View next topic » 
Author Message
meyermj
PostPosted: Thu Jan 29, 2004 12:42 pm    Post subject: How do I reference this............................ Reply with quote

Newbie

Joined: 29 Jan 2004
Posts: 1

I want to get the cardinality of the 'item' field in the XML below.

I am using the following ESQL set command but it doesn't seem to work!

Any help would be appreciated!


SET c = CARDINALIY (InputBody.RES.APP.RESULT.Z_RFC(XML.attr)Response.CHARACTERISTICS.item[])

<RES>
<APP>
<RESULT>
<Z_RFC.Response>
<PASS_ID>632133</PASS_ID>
<CHARACTERISTICS>
<item><NAME>JIM</NAME></item>
<item><NAME>BOB</NAME></item>
<item><NAME>RAY</NAME></item>
</CHARACTERISTICS>
</Z_RFC.Response>
</RESULT>
</APP>
</RES>
Back to top
View user's profile Send private message
CoolDude
PostPosted: Thu Jan 29, 2004 1:08 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jan 2004
Posts: 39

Try this:


SET c = CARDINALIY (InputBody.RES.APP.RESULT."Z_RFC.Response".CHARACTERISTICS.*[]);

this would give you the cardinality of fields present in "InputBody.RES.APP.RESULT."Z_RFC.Response".CHARACTERISTICS"

Are you sure about Z_RFC(XML.attr)Response

Thanks,

_________________
Correct Me from Wrong . If i am correct Appreciate Me
Back to top
View user's profile Send private message
Galichet
PostPosted: Tue Feb 03, 2004 8:08 am    Post subject: Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

Hi,

this is CARDINALITY and not CARDINALIY

it should give something like that :

SET c = CARDINALITY (InputBody.RES.APP.RESULT."Z_RFC.Response".CHARACTERISTICS.item[])
_________________
Eric Galichet
SMABTP
France
Back to top
View user's profile Send private message Send e-mail
Missam
PostPosted: Tue Feb 03, 2004 8:14 pm    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Hi
It seems you are confusing with the period '.' in the element Z_RFC.Response is Response really an attribute of Z_RFC or its part of the complete element.
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 » How do I reference this............................
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.