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 » Carriage Returns and tabs in XML

Post new topic  Reply to topic
 Carriage Returns and tabs in XML « View previous topic :: View next topic » 
Author Message
sweety176
PostPosted: Fri Sep 02, 2005 8:00 am    Post subject: Carriage Returns and tabs in XML Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 30

Hi
I have my adapter which transforms XML messages.
The problem is when my XML contains tabs and/or carriage returns, my adapter doesnt work.But if i remove them the message passes through.
Is there a way I can accomodate for those tabs and/or carriage returns in my ESQL code.
Regards
Sowmya
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 02, 2005 8:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What is your "adapter"? A message flow? A custom node? An IBM Adapter?

If you look at a Trace node output of your message, as it is parsed, it should be clear about how to code your ESQL to remove or skip the elements in question.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sweety176
PostPosted: Fri Sep 02, 2005 9:17 am    Post subject: adapter Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 30

My adapter is a compute node executing the ESQL code.
Back to top
View user's profile Send private message
Tibor
PostPosted: Sun Sep 04, 2005 3:18 pm    Post subject: Re: Carriage Returns and tabs in XML Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

sweety176 wrote:
I have my adapter which transforms XML messages.
The problem is when my XML contains tabs and/or carriage returns, my adapter doesnt work.But if i remove them the message passes through.
Is there a way I can accomodate for those tabs and/or carriage returns in my ESQL code.

The broker builds an accurate logical message tree of the input - this is the parsing. For a better understanding, place a Trace Node (before Compute Node) into your message flow and study the difference.

You can find all whitespace elements (CR, tab, space) moreover you can address these just look the FIELDTYPE function in manual.

Another ESQL tricks here: http://www.mqseries.net/phpBB2/viewtopic.php?t=5008&

HTH,
Tibor
Back to top
View user's profile Send private message
sweety176
PostPosted: Tue Sep 06, 2005 9:49 am    Post subject: generic solution Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 30

Hi
I tried using FILEDNAME function and then TRIM. But then I realized that I have tabs in almost every line of the input message and I really dont know the location of tabs ,line feeds or carriage returns or if they exist as the next messages come by.So is there any generic solution i can implement in my compute node ESQL code so it can check and remove them.
Regards
Sweety
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 06, 2005 9:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you look at the links that Tibor posted?

You could also initially parse the message as BLOB, and use OVERLAY to remove whitespace 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 » Carriage Returns and tabs in XML
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.