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 » NULL parsing nodes with XMLNSC

Post new topic  Reply to topic
 NULL parsing nodes with XMLNSC « View previous topic :: View next topic » 
Author Message
fabyos
PostPosted: Tue Jun 23, 2009 11:44 am    Post subject: NULL parsing nodes with XMLNSC Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Tue Jun 23, 2009 12:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
fabyos
PostPosted: Tue Jun 23, 2009 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Tue Jun 23, 2009 2:42 pm    Post subject: Reply with quote

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
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 » NULL parsing nodes with XMLNSC
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.