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 » &amp

Post new topic  Reply to topic
 &amp « View previous topic :: View next topic » 
Author Message
ggriffith
PostPosted: Wed Mar 25, 2009 3:44 am    Post subject: &amp Reply with quote

Acolyte

Joined: 17 Oct 2007
Posts: 67

I have a target system that requires the following format

<a>
<b><jjjjjj><b/>
<c>jjjjj</c>
</a>

I can write code attempting to generate the following structure using CDATA sections or using &lt; and &gt;

<a>
<b>&lt;jjjjjj&gt:<b/>
<c>jjjjj</c>
</a>

which the application would accept

but the broker is escaping the first &

so I get

<a>
<b>&amp;lt;jjjjjj&amp;gt:<b/>
<c>jjjjj</c>
</a>

which the target application will not accept

Any suggestions apart from changing the target application ( which already receives input from a different source )
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 25, 2009 3:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

... did you try just adding "<" rather than adding "&lt;"?
Back to top
View user's profile Send private message
ggriffith
PostPosted: Wed Mar 25, 2009 4:25 am    Post subject: Reply with quote

Acolyte

Joined: 17 Oct 2007
Posts: 67

Thanks Jeff. That gave unexpected results, which may solve the problem. I'll have to try it in my full scenario. One flow producing the message, then passing to another to send as a soap request.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Mar 25, 2009 8:11 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Either of these should work:
Code:
SET OutputRoot.XMLNSC.a.b = '<jjjjjj>'

or
Code:
SET OutputRoot.XMLNSC.a.(XMLNSC.CDataField)b = '<jjjjjj>'
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 » &amp
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.