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 » Using MBFE to go from XML Message to XML File

Post new topic  Reply to topic
 Using MBFE to go from XML Message to XML File « View previous topic :: View next topic » 
Author Message
jsash1
PostPosted: Thu Sep 27, 2007 3:30 pm    Post subject: Using MBFE to go from XML Message to XML File Reply with quote

Newbie

Joined: 27 Sep 2007
Posts: 3

Hi, i am using WMB 6 with MBFE.

I have created an XML message using a message set and have placed this message on a queue.

I have created the following flow:
MQInput > FileProxyNode > ComputeNode > FileOutputNode

I am able to succesfully write the XML message to a .txt file. However the format of the XML in the text file is:

<Record><CostCenter>CostCenter</CostCenter><CurrencyCode>CurrencyCode</CurrencyCode></Record>
(The whole XML message on the one line)

How do i specify that the XML should be formated correctly in the text file??
EG:
<Record>
<CostCenter>CostCenter</CostCenter>
<CurrencyCode>CurrencyCode</CurrencyCode>
</Record>

My Compute node has the following ESQL snippet:

SET OutputRoot.Properties = InputRoot.Properties;
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.Properties.MessageFormat = 'XML';
SET OutputRoot.XMLNS.Record = InputRoot.XMLNS.(XML.Element).Extract.Record;
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 27, 2007 3:51 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

XML doesn't have formatting.

Whitespace characters outside of tags are explicitly ignored by all XML parsers.

XML is also not intended to be read by people. It's a format that's designed to be relatively easy for machines to read.

All that said, the XMLNS parser will preserve and reproduce whitespace elements in the message tree, including elements that contains platform specific line ending characters.
_________________
I am *not* the model of the modern major general.
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 » Using MBFE to go from XML Message to XML File
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.