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 » Suppressing new lines on the Message tree

Post new topic  Reply to topic
 Suppressing new lines on the Message tree « View previous topic :: View next topic » 
Author Message
mmksri
PostPosted: Sun Aug 27, 2006 10:52 pm    Post subject: Suppressing new lines on the Message tree Reply with quote

Newbie

Joined: 07 Jun 2006
Posts: 7

Hi All,
I am using XMLNS domain on my MQinput node. I observed in debug view that after input node each elemnet will be enlosed within pair of newlines. Newlines are treated as an elements and ESQL FIRSTCHILD / NEXTSIB .. etc will also return a newline.
Just wondering whether its an expected behaviour. Is there any way to suppress these newline elements appearing from the message tree. Any suggestions would really help.

Thanks in advance.
Back to top
View user's profile Send private message
jbanoop
PostPosted: Sun Aug 27, 2006 11:12 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Sep 2005
Posts: 401
Location: SC

I think if you are on v 6 , XMLNSC will strip the logical message of the new lines. However I think the underlying bit stream will continue to have them.
I am commenting based on the posts I have read here from Kimbert and others. Do a search on this and u should be much more clear on it.
Regards,
Anoop
Back to top
View user's profile Send private message Yahoo Messenger
elvis_gn
PostPosted: Sun Aug 27, 2006 11:48 pm    Post subject: Re: Suppressing new lines on the Message tree Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi mmksri,
mmksri wrote:
I am using XMLNS domain on my MQinput node. I observed in debug view that after input node each elemnet will be enlosed within pair of newlines. Newlines are treated as an elements and ESQL FIRSTCHILD / NEXTSIB .. etc will also return a newline.
If you remove the spaces or newlines between the tags in the xmlns message, then i think it will display correctly in debug.

Regards.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Aug 28, 2006 5:59 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

XML and XMLNS are 'verbose' XML parsers. All text in the input document goes into the message tree - even the newlines and indentation.
XMLNSC is a 'compact' parser. It automatically discards 'mixed content', comments and processing instructions ( unless you tell it not to), and preserves the only those parts which most people consider to be important.
If you're on v6 you should move to XMLNSC, if only because it's the latest and fastest of the XML domains.
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 » Suppressing new lines on the Message tree
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.