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 IndexWebSphere Message Broker SupportSelecting XML with Namespaces from Environment

Post new topicReply 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: 70

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

Chevalier

Joined: 17 Jul 2017
Posts: 418
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: 70

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: 162

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 topicReply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum IndexWebSphere Message Broker SupportSelecting 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.