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 » Changing XML tags

Post new topic  Reply to topic
 Changing XML tags « View previous topic :: View next topic » 
Author Message
lanny boy
PostPosted: Mon May 17, 2004 12:47 am    Post subject: Changing XML tags Reply with quote

Voyager

Joined: 24 Nov 2003
Posts: 79
Location: UK

I have an XML message in the format InputBody.B.C.XYZ. I want to change the middle part of the tag to OutputRoot.XML.D.E.XYZ.

Is it possible to change the tag or do I have to create a new one and set it equal to the old value. I have tried using FIELDNAME, but it seems although you can retrieve this value you cannot set it to be a different value.

Any help would appreciated.
lanny boy
Back to top
View user's profile Send private message
lanny boy
PostPosted: Mon May 17, 2004 2:25 am    Post subject: Reply with quote

Voyager

Joined: 24 Nov 2003
Posts: 79
Location: UK

I have managed to change the tag successfully using the cardinality function however i do need to go a step further and try and have the output as an attribute of in the input xml eg

Set j = Cardinality(InputBody.tagA.tagB.*[]);
SEt n = 1;
While n <= j do
Set OutputRoot.XML.newTag.(XML.attr)[n] = InputBody.tagA.tagB.[n];
SET n = n +1;
END WHILE;

Unfortunately this is not working.

Any ideas???
Back to top
View user's profile Send private message
wooda
PostPosted: Mon May 17, 2004 5:30 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Have you tried the DETACH and REATTACH ESQL functions to effectively cut an paste a bit of the tree. worth a try.
Back to top
View user's profile Send private message
lanny boy
PostPosted: Mon May 17, 2004 6:15 am    Post subject: XML - Conversion of simple type to attribute of complex????? Reply with quote

Voyager

Joined: 24 Nov 2003
Posts: 79
Location: UK

Good idea, unfortunately it didn't work, I get the following error message

"Cannot attach an element from a different message group"

Is it possible that WMQSI does not allow dynamic conversion of a simple type and its value to an attribute of another complex type??
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 » Changing XML tags
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.