Posted: Thu Feb 11, 2010 7:16 am Post subject: Adding XML prolog through Mapping node or Java compute Node
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.
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.
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