|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Handling Unsupported XMl Characters in Message Flows? |
« View previous topic :: View next topic » |
Author |
Message
|
LH33 |
Posted: Thu Mar 27, 2003 4:54 am Post subject: Handling Unsupported XMl Characters in Message Flows? |
|
|
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 |
|
 |
yaakovd |
Posted: Thu Mar 27, 2003 6:44 am Post subject: |
|
|
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 |
|
 |
kirani |
Posted: Thu Mar 27, 2003 9:43 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|