|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Newbie questions about XML tags |
« View previous topic :: View next topic » |
Author |
Message
|
yonny |
Posted: Fri Mar 04, 2005 1:28 pm Post subject: Newbie questions about XML tags |
|
|
 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 = '< |
JT |
Posted: Fri Mar 04, 2005 6:06 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Sat Mar 05, 2005 5:38 am Post subject: |
|
|
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 |
|
 |
yonny |
Posted: Wed Mar 16, 2005 5:51 am Post subject: |
|
|
 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('<' AS BLOB CCSID InputRoot.MQMD.CodedCharSetId);
SET "OutputRoot"."BLOB"."BLOB" = REPLACE("InputRoot"."BLOB"."BLOB", LESS, X'3C'); |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|