|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Suppressing new lines on the Message tree |
« View previous topic :: View next topic » |
Author |
Message
|
mmksri |
Posted: Sun Aug 27, 2006 10:52 pm Post subject: Suppressing new lines on the Message tree |
|
|
 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 |
|
 |
jbanoop |
Posted: Sun Aug 27, 2006 11:12 pm Post subject: |
|
|
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 |
|
 |
elvis_gn |
Posted: Sun Aug 27, 2006 11:48 pm Post subject: Re: Suppressing new lines on the Message tree |
|
|
 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 |
|
 |
kimbert |
Posted: Mon Aug 28, 2006 5:59 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|