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 » Assigning an XMLNSC.Attribute

Post new topic  Reply to topic
 Assigning an XMLNSC.Attribute « View previous topic :: View next topic » 
Author Message
WMB_User
PostPosted: Thu Jan 22, 2009 9:23 am    Post subject: Assigning an XMLNSC.Attribute Reply with quote

Apprentice

Joined: 17 Nov 2008
Posts: 31

WMB 6.1.0.2

I can't seem to assign an XMLNSC.Attribute value to an element that was created using the CREATE command. Am I defining the attribute correctly with the NAMESPACE?

Code:
DECLARE ns          NAMESPACE 'http://ACORD.org/Standards/Life/2';
DECLARE dtcc        NAMESPACE 'http://service.attachments.dtcc.com';
DECLARE outRef      REFERENCE TO OutputRoot;

CREATE LASTCHILD OF OutputRoot DOMAIN 'XMLNSC' NAME 'XMLNSC';
   MOVE outRef LASTCHILD;
CREATE FIRSTCHILD OF OutputRoot.XMLNSC TYPE XMLNSC.XmlDeclaration;
   SET OutputRoot.XMLNSC.(XMLNSC.XmlDeclaration)*.(XMLNSC.Attribute)Version = '1.0';
   SET OutputRoot.XMLNSC.(XMLNSC.XmlDeclaration)*.(XMLNSC.Attribute)Encoding = 'UTF-8';
CREATE LASTCHILD OF outRef NAMESPACE dtcc NAME 'attachmentRequestResponse';
   MOVE outRef LASTCHILD;
   SET outRef.(XMLNSC.NamespaceDecl)xmlns:dtcc                  =  dtcc;
CREATE LASTCHILD OF outRef NAMESPACE ns NAME 'TXLife';
   MOVE outRef LASTCHILD;
   SET outRef.(XMLNSC.NamespaceDecl)xmlns                       =  ns;
   SET outRef.(XMLNSC.NamespaceDecl)xmlns:xsi                   =  xsi;
   SET outRef.(XMLNSC.ProcessingInstruction)xsi:schemaLocation  =  'http://ACORD.org/Standards/Life/2 DTCCTXLife2.20.00enum.xsd';
CREATE LASTCHILD OF outRef NAMESPACE ns NAME 'TXLifeResponse';
   MOVE outRef LASTCHILD;
   CREATE LASTCHILD OF outRef NAMESPACE ns  NAME 'TransRefGUID'          VALUE NULL;
   CREATE LASTCHILD OF outRef NAMESPACE ns  NAME 'TransType'             VALUE 'XXXX';
   SET outRef.ns:TransType.(XMLNSC.Attribute)ns:tc  =  '510';
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 22, 2009 9:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What is the result of the code you have pasted?
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 » Assigning an XMLNSC.Attribute
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.