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 » WMB 6.0.0.3 - Value Differences with XMLNS vs XMLNSC

Post new topic  Reply to topic
 WMB 6.0.0.3 - Value Differences with XMLNS vs XMLNSC « View previous topic :: View next topic » 
Author Message
AviD
PostPosted: Wed Sep 12, 2007 9:45 am    Post subject: WMB 6.0.0.3 - Value Differences with XMLNS vs XMLNSC Reply with quote

Acolyte

Joined: 06 Apr 2004
Posts: 62

Does anyone happen to have a link/doc with a comparison between WMB 6.0.0.3's XMLNS and XMLNSC domain formatting?

I'm seeing different results, namely with empty fields where XMLNS will treat the empty field as '', whereas XMLNSC treats it as a '\n'.

Is this normal behaviour?

What is the recommended domain, or advantages/disadvantages of one vs the other?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 12, 2007 9:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You mean, a link other than what's in the InfoCenter?

The XMLNSC is the "Compact" Parser. It's designed to do things like eliminate whitespace data that appears between elements. So if you have
<tag>
<tag1></tag1>
</tag>

You won't get a tree that has whitespace value elements for the return after <tag> and </tag1>.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
AviD
PostPosted: Wed Sep 12, 2007 10:55 am    Post subject: Reply with quote

Acolyte

Joined: 06 Apr 2004
Posts: 62

But you get varying results in respect to handling empty tags.

i.e.

<SomeTag>
<SomeSubTag1>hasValue</SomeSubTag1>
<SomeSubTag2/>
<SomeTag>

With XMLNS:

<SomeSubTag2/> will equal ''

With XMLNS:

<SomeSubTag2/> will equal a '\n'
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 12, 2007 11:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

That's really not the value of the SubTag2 MbElement.

I'm almost positive that's a Value element that is a sibling of the SubTag2 element, with a content of "\n".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Sep 12, 2007 12:50 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

This is a known defect in XMLNSC. Search this forum for 'XMLNSC empty element' and you will find several other posts about it.
See http://www.mqseries.net/phpBB2/viewtopic.php?t=36590
Back to top
View user's profile Send private message
AviD
PostPosted: Thu Sep 13, 2007 7:13 am    Post subject: Reply with quote

Acolyte

Joined: 06 Apr 2004
Posts: 62

Thanks Jeff and kimbert
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 » WMB 6.0.0.3 - Value Differences with XMLNS vs 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.