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 » Newbie questions about XML tags

Post new topic  Reply to topic
 Newbie questions about XML tags « View previous topic :: View next topic » 
Author Message
yonny
PostPosted: Fri Mar 04, 2005 1:28 pm    Post subject: Newbie questions about XML tags Reply with quote

Apprentice

Joined: 08 Jul 2001
Posts: 49
Location: Santo Domingo

Hello, I have two questions regarding XML messages.
Message set for the output message:
Default Wire Format: XML1
Runtime Parser: MRM
"DATA" is one of the message elements.

I have a compute node with the following esql instruction:
SET OutputRoot.MRM.DATA = '<![CDATA[' || InputBody.MSG_HEADER
but the result I am getting is: <DATA>&lt;![CDATA[0074
I want to know how can I avoid the character "<" for being substitute by "&lt".

And the second question is how can I include "empty" xml tags in the output message. By "empty" I mean that I need the xml tags to be present in the output message even if they dont have data associated.

Thank you for your help.
Back to top
View user's profile Send private message Send e-mail AIM Address
JT
PostPosted: Fri Mar 04, 2005 6:06 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

The special value element 'AsisElementContent' will prevent the '&' from being converted to its escape sequence, however it may be a valid constant for the XML parser only, and not the MRM parser.

I believe the 'Create Field' statement will create an empty XML element.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Mar 05, 2005 5:38 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Actually, the way that the documentation says to create an empty element is to use the VALUE clause of SET to assign NULL to the value of the element.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
yonny
PostPosted: Wed Mar 16, 2005 5:51 am    Post subject: Reply with quote

Apprentice

Joined: 08 Jul 2001
Posts: 49
Location: Santo Domingo

Thank you for your answers.
To solve the problem with the special characters I used a compute node with REPLACE statetments, I was not able to use de asiselementcontent because the parser is MRM.

DECLARE LESS BLOB CAST('&lt;' AS BLOB CCSID InputRoot.MQMD.CodedCharSetId);
SET "OutputRoot"."BLOB"."BLOB" = REPLACE("InputRoot"."BLOB"."BLOB", LESS, X'3C');
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Newbie questions about 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.