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 » Selecting XML with Namespaces from Environment

Post new topic  Reply to topic Goto page Previous  1, 2
 Selecting XML with Namespaces from Environment « View previous topic :: View next topic » 
Author Message
madrox
PostPosted: Fri Jan 15, 2021 8:05 am    Post subject: Reply with quote

Acolyte

Joined: 11 Mar 2015
Posts: 71

Yes i did, same exception as above
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Fri Jan 15, 2021 8:50 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

hi...try this and see,

Code:
CREATE LASTCHILD OF Environment DOMAIN 'XMLNSC' PARSE (xml OPTIONS FolderBitStream CCSID 1208 FORMAT 'XMLNSC');
Back to top
View user's profile Send private message
madrox
PostPosted: Fri Jan 15, 2021 9:13 am    Post subject: Reply with quote

Acolyte

Joined: 11 Mar 2015
Posts: 71

I just did that before your response and that worked.. Thanks again everyone
Back to top
View user's profile Send private message
mpong
PostPosted: Sun Jan 31, 2021 4:42 pm    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

Just to keep it simple:


Code:
BEGIN
      -- CALL CopyMessageHeaders();
      -- CALL CopyEntireMessage();

      CREATE LASTCHILD OF Environment DOMAIN 'XMLNSC' PARSE (InputRoot.BLOB.BLOB CCSID 1208);
      DECLARE nmSpace NAMESPACE 'http://sample/iibadmin';
      DECLARE firstName CHAR;
      DECLARE empNo CHAR;
      SET empNo = Environment.XMLNSC.nmSpace:EMPLOYEE.nmSpace:EMPNO;
      SET firstName = THE(SELECT ITEM A.nmSpace:FIRSTNME FROM Environment.XMLNSC.nmSpace:EMPLOYEE[] AS A WHERE A.nmSpace:EMPNO=empNo );
      
      RETURN TRUE;
   END;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Selecting XML with Namespaces from Environment
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.