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 » Handling Unsupported XMl Characters in Message Flows?

Post new topic  Reply to topic
 Handling Unsupported XMl Characters in Message Flows? « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Thu Mar 27, 2003 4:54 am    Post subject: Handling Unsupported XMl Characters in Message Flows? Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Hi!

Does anyone know how to check and handle unsupported XML characters within WMQI Message Flows?

Thanks for any help you can provide!! LisaB
Back to top
View user's profile Send private message
yaakovd
PostPosted: Thu Mar 27, 2003 6:44 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Lisa,
In our case in done by sender application in Java programm.

I can suggest following options:

1. Java plugin node with associated code

2. Function in compute node and loop where you check field by field using the function. Or you can check only problematic values (not numeric, for example) before you create field in output XML tree.

This is possible code in Java: array SIGNS contains all characters which you want to replace (in this case with single space).

Code:
public final static char[] SIGNS = {'~','*','<', '/'};         // signs to be replaced with ' '
public String updateIt(String word) {
     char currentSign;
     for (int i = 0; i<SIGNS.length; i++) {
             currentSign = SIGNS[i];
   if(word != null) {
        setAckStatus(word.replace(currentSign,' '));
   }
      }
      return word;
}

_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Thu Mar 27, 2003 9:43 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Lisa,
You can also use CDATASECTION around special characters in your input XML message.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Handling Unsupported XMl Characters in Message Flows?
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.