|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
NULL parsing nodes with XMLNSC |
« View previous topic :: View next topic » |
Author |
Message
|
fabyos |
Posted: Tue Jun 23, 2009 11:44 am Post subject: NULL parsing nodes with XMLNSC |
|
|
Apprentice
Joined: 15 May 2009 Posts: 37
|
Hi,
Currently I'm using MRM as a parser, however there is some nodes that are empty, but expressed as <node></node>. In MRM this can be said as NULL value and validates based on Message Set definition.
Changing it to XMLNSC its not directly. The interpretation of NULL is only view when the attribute xsi:nil="true" is present.
There is a way to express NULL without attribute? |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jun 23, 2009 12:45 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
The short answer is 'no'. XMLNSC does not use the information in the physical format of the message set, so it cannot use the null handling properties.
XMLNSC complies with W3C standards - that's why it uses xsi:nil and nothing else.
Once again, I would be interested to know what it matters - most XML processors don't do null handling, so I wonder why you need it in your flow? |
|
Back to top |
|
 |
fabyos |
Posted: Tue Jun 23, 2009 1:29 pm Post subject: |
|
|
Apprentice
Joined: 15 May 2009 Posts: 37
|
kimbert wrote: |
Once again, I would be interested to know what it matters - most XML processors don't do null handling, so I wonder why you need it in your flow? |
The problem is the current XML received... it, unfortunatelly, doesn't complains to W3C which is used by XMLNSC, so there is a lot of blank elements on XML. Its just for validation. Currently MRM validates this kind of message. Since the XML is not gonna be changed, at least now, I'll have to keep with MRM.
I know that there is better ways to manage this using nil/cardinality, however the XML is not complaint so I have to accept it, unfortunatelly.
I was just thinking in use XMLNSC instead of MRM...
thanks |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jun 23, 2009 2:42 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
So you have elements which are empty, but which should not be empty according to the XML Schema that you are using? In that case, I agree that you should stick with MRM XML for now. But you should plan to fix those schemas. |
|
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
|
|
|
|