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 » creating XML attributes in ESQL

Post new topic  Reply to topic
 creating XML attributes in ESQL « View previous topic :: View next topic » 
Author Message
elwis
PostPosted: Sun Sep 28, 2008 9:39 pm    Post subject: creating XML attributes in ESQL Reply with quote

Apprentice

Joined: 02 Apr 2008
Posts: 26
Location: Sweden

Im developing a XML message in ESQL for deployment to an older Websphere machine. Since Im kind of green on ESQL I have to ask about XML attributes.

Ive done this

Code:

DECLARE j INTEGER 1;
      DECLARE countmsg INTEGER CARDINALITY(InputRoot.XML.Invoice.InvoiceMessage[]);
      WHILE (j <= countmsg) do
      
         SET OutputRoot.XML.InvoiceDocument.InvoiceMessage[j].(XML.Attribute)MessageNumber = InputRoot.XML.Invoice.InvoiceMessage[j].MessageNumber;
         SET OutputRoot.XML.InvoiceDocument.InvoiceMessage[j].MessageNumber = InputRoot.XML.Invoice.InvoiceMessage[j].MessageNumber;          



I thought that would give me a XML attribute with a proper attribute and then the element in a row by itself. Instead I get nothing, it simply ignores these two and keep going with the other elements.

Am I doing something wrong when trying to create the attribute?

Regards
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Sep 28, 2008 9:43 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you should be using XMLNS or XMLNSC. The assumption is that you are at version 6.

I expect the .(XMLNS.Attribute) to work better in version 6.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
elwis
PostPosted: Sun Sep 28, 2008 10:14 pm    Post subject: Reply with quote

Apprentice

Joined: 02 Apr 2008
Posts: 26
Location: Sweden

Thanks for answering, yes I'm at version6 but it will be deployed to a version 5 machine...
Maybe it will be working on that one, better fire up my vpn
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 » creating XML attributes in ESQL
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.