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 » XML with mixed content

Post new topic  Reply to topic
 XML with mixed content « View previous topic :: View next topic » 
Author Message
marco
PostPosted: Thu May 19, 2005 4:20 am    Post subject: XML with mixed content Reply with quote

Apprentice

Joined: 16 Feb 2004
Posts: 46

Hi,

I have a fixed string structure and I want to translate it in XML as follows :

change
TEST = test
ELE1 = content

into
<Msg>
<Element1 attr="test">content</Element1>
</Msg>

So I created both messagesets, declared Complex Type "Element1" as Mixed and ordered set and tried it with both a mapping and esql :

SET OutputRoot.MRM.Msg.Element1.(XML.Attribute)"attr" = InputRoot.MRM.TEST;
SET OutputRoot.MRM.Msg.Element1 = InputRoot.MRM.ELE1;

in either cases the result was :

<Msg>
<Element1>content</Element1>
</Msg>

So I think the second line is recreating the element that was created with the first line.
Can anyone help me with this problem ?


Tx
Tom
Back to top
View user's profile Send private message
vennela
PostPosted: Thu May 19, 2005 6:16 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Moving to WBIMB forum.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Thu May 19, 2005 6:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Have you tried reversing the order of your statements?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
marco
PostPosted: Fri May 20, 2005 12:30 am    Post subject: Reply with quote

Apprentice

Joined: 16 Feb 2004
Posts: 46

Tx !!!

It worked !!!
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 » XML with mixed content
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.