Posted: Mon May 05, 2008 4:44 am Post subject: CR|LF - XMLNSC Parser
Apprentice
Joined: 06 Dec 2007 Posts: 27
I have an incoming xml parsed by the XMLNSC Parser and the message gets transformed to a TDF and send to an output queue. If there are no issues the original message contains a CDATA section which has a status messsage that I need to send it to a status application thru mq.
The status message has CR | LF ( 0D & 0A ) as the line separators.
The status application receives the status message with 0A as the line separator and not with CR | LF. Is this an expected behavior?
I am using WMB 6.1
I had defined my Status message as TDF (ComplexType Seq) containing 1 (or) more Strings where each String is delimited by the CR | LF as delimiter. And In the Status compute node I assign it as follows
SET statusMessage = msg.Status.(XML.CDataSection);
where the incoming message has something like below:
<Status>
<!CDATA[[....
]]>
</Status>
Posted: Mon May 05, 2008 4:57 am Post subject: Re: CR|LF - XMLNSC Parser
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
IntegratorWMB wrote:
I have an incoming xml parsed by the XMLNSC Parser
Good.
IntegratorWMB wrote:
SET statusMessage = msg.Status.(XML.CDataSection);
This is not correct for the XMLNSC parser. It's only correct for the XMLNS parser.
Don't use the XMLNS parser, fix this statement so it's correct for the XMLNSC Parser. _________________ I am *not* the model of the modern major general.
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