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 » Adding XML prolog through Mapping node or Java compute Node

Post new topic  Reply to topic
 Adding XML prolog through Mapping node or Java compute Node « View previous topic :: View next topic » 
Author Message
er_pankajgupta84
PostPosted: Thu Feb 11, 2010 7:16 am    Post subject: Adding XML prolog through Mapping node or Java compute Node Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

How can we add XML prolog through Mapping node or Java compute Node.

Suppose I am doing one to one mapping from a CSV message set to an XML message set in the mapping node. The output message will have the desired output XML. How can I add a Prolog to it using either the mapping node or through a additional JCN.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
kimbert
PostPosted: Thu Feb 11, 2010 7:28 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The mapping node does not allow you to add an XML prolog.
XMLNSC will not allow you to create a prolog that contains a DTD.

In the Java Compute node, you can add an XML declaration by creating an element under OutputRoot.XMLNSC with field type 'XMLNSC.XmlDeclaration' . You can then add 'Version' and 'Encoding' child attributes to it.

For further help, check the documentation, or search this forum, or parse a message that has an XML prolog and look at the resulting message tree using a Trace node.
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 » Adding XML prolog through Mapping node or Java compute Node
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.