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 » Carriage return inside XML message

Post new topic  Reply to topic
 Carriage return inside XML message « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Fri Nov 15, 2002 7:55 pm    Post subject: Carriage return inside XML message Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

My customer is using the sendmail plug-in to send a message as an email from WMQI to Lotus Note. The body of the email message is from the <Body> tag of XML input message. I have no problem sending a paragraph.
For example if I have <Body>my long.......long message </Body>. This "my long.....long message" is the body of the email.
My customer has a new requirement that the "long....long message" is now a list of many items. (i.e. item1item2item3......itemn). Using the current implementation, it will show up in Lotus note mail as
item1item2item3....................itemn
What they like to see is
item1
item2
:
itemn

I think I may be able to do this by inserting Carriage return in between items. For example <Body>item1CRitem2CRitem3....CRitemn</Body>.

I was wondering if this will work and if so what is the CR character to insert.
CR inside the
Back to top
View user's profile Send private message
kirani
PostPosted: Sat Nov 16, 2002 10:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Hi Kelvin,
Use code similar to this to add newline in your XML data:

Code:

DECLARE itemstr CHAR;
DECLARE newl CHAR;
SET newl = CAST(x'0A' AS CHAR CCSID InputRoot.Properties.CodedCharSetId);
SET itemstr = item1 || newl || item2 || newl ....;
-- Assign itemstr to your <Body> tag.

_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Carriage return inside XML message
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.