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 IndexWebSphere Message Broker Supporthow to add XML Declaration to splitted output messages

Post new topicReply to topic
how to add XML Declaration to splitted output messages View previous topic :: View next topic
Author Message
jcv
PostPosted: Fri Nov 16, 2018 9:11 am Post subject: how to add XML Declaration to splitted output messages Reply with quote

Chevalier

Joined: 07 May 2007
Posts: 409
Location: Zagreb

Hi,

I want XML Declaration from the input message:

<?xml version="1.0" encoding="UTF-8"?>

copied to each splitted output message by using mapping node and foreach transform. What's the best way to do it?
Back to top
View user's profile Send private message Visit poster's website
jcv
PostPosted: Fri Nov 16, 2018 9:26 am Post subject: Reply with quote

Chevalier

Joined: 07 May 2007
Posts: 409
Location: Zagreb

Forget it, I figured it out by myself. I added a compute node after a mapping node with this esql:

CREATE FIRSTCHILD OF OutputRoot.XMLNSC TYPE XMLNSC.XmlDeclaration NAME 'XmlDeclaration';
SET OutputRoot.XMLNSC.(XMLNSC.XmlDeclaration)*.(XMLNSC.Attribute)Version = '1.0';
SET OutputRoot.XMLNSC.(XMLNSC.XmlDeclaration)*.(XMLNSC.Attribute)Encoding = 'UTF-8';

and it did the job.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker Supporthow to add XML Declaration to splitted output messages
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.