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 » XMLNSC - handling of namespace prefixes as part of qnames

Post new topic  Reply to topic
 XMLNSC - handling of namespace prefixes as part of qnames « View previous topic :: View next topic » 
Author Message
Seb
PostPosted: Thu Jan 13, 2011 2:14 am    Post subject: XMLNSC - handling of namespace prefixes as part of qnames Reply with quote

Apprentice

Joined: 27 Mar 2009
Posts: 41

Hi,

I am struggling with the following behavior of copying elements that have a defined xsi:type and I was wondering if this works as designed.

If I have an element defined like this:

<ns1:element xsi:type="ns2:myType">something</ns1:element>

where both namespaces are defined somewhere at a parent level. Now, I copy this element from the input tree to the output tree and it happens that the definition for ns2 is removed. Message Broker seems to handle the xsi:type value as a pure string and cleans up unused namespace declarations.

Is there a way to keep this declaration?

Cheers,
Seb
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu Jan 13, 2011 6:48 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

No - the message tree does not know that the xsi:type is a QName, and does not automatically put out the required xmlns attribute. You have to ensure that xmlns attributes for QNames in xsi:type values are copied into OutputRoot by the message flow.
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 » XMLNSC - handling of namespace prefixes as part of qnames
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.