|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML to TDS - Input Parsing |
« View previous topic :: View next topic » |
Author |
Message
|
IntegratorWMB |
Posted: Thu Apr 24, 2008 7:16 pm Post subject: XML to TDS - Input Parsing |
|
|
Apprentice
Joined: 06 Dec 2007 Posts: 27
|
All,
I have a message flow which converts an incoming xml to tdf.
I designed the Message Domain as MRM. On the Input Message Parsing I used MRM even though the incoming message is xml. There will always be only one client for this message flow and the client code shares the same xsd with message broker . The xml contains CDATA section.
When I use MRM as the input parser :
the cdata section contains extra spaces
(0x0300000B):BodyContent = '
HEADER
----------
.......
'
)
whereas I don't see those extra spaces when I use the XMLNSC parser.
and the xmlnsc parser show PCDATA as part of the cdata section. Is this PCData section converts to extra spaces in MRM parser. If yes, how can I truncate those extra spaces?
(0x01000000):BodyContent = (
(0x02000000):PCDATA = '
'
(0x02000001):CDATA = ' HEADER
----------
(0x02000000):PCDATA = '
'
)
)
Since the input will always be xml, I think using xmlnsc parser is a better option even if the message domain is MRM and there is no input validation.
Will there be a performance issue using XMLNSC parser as the volume of messages are really high?
Thanks |
|
Back to top |
|
 |
kimbert |
Posted: Fri Apr 25, 2008 1:27 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Will there be a performance issue using XMLNSC parser as the volume of messages are really high? |
There certainly will, but it's a positive effect. Your CPU costs for XML parsing will drop by a factor of at least 4, probably more.
If you're on v6.1, you will be able to validate in the XMLNSC domain as well. If you're still on v6, you're well positioned to take advantage after you upgrade. |
|
Back to top |
|
 |
IntegratorWMB |
Posted: Fri Apr 25, 2008 5:40 am Post subject: |
|
|
Apprentice
Joined: 06 Dec 2007 Posts: 27
|
Do you know why MRM parser add those extra white spaces on CDataSection?
Thanks |
|
Back to top |
|
 |
kimbert |
Posted: Fri Apr 25, 2008 11:12 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Yes. Or to be more correct, I know why XMLNSC removes the whitespace. Go to the Parser Options properties page on the input node. In the XMLNSC properties, you will find a property 'Suppress mixed content'. Its default setting is to suppress mixed content. |
|
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
|
|
|
|