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 » XMLNS - default namespace vs prefix

Post new topic  Reply to topic
 XMLNS - default namespace vs prefix « View previous topic :: View next topic » 
Author Message
Testo
PostPosted: Thu Feb 10, 2005 3:00 am    Post subject: XMLNS - default namespace vs prefix Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

I'm working with big xml messages (> 1 MB) and in order to reduce the payload, we would like to avoid the use of prefix when possible.

According to the following example of ESQL code

Code:

DECLARE NS1 NAMESPACE 'http://www.ibm.com/TUAWBIDistributor/';
            
      SET OutputRoot.XMLNS.NS1:DistributeResponse.NS1:DistributeResult = 'true';


this is the output:

Code:

<NS1:DistributeResponse xmlns:NS1="http://www.ibm.com/TUAWBIDistributor/">
  <NS1:DistributeResult>true</NS1:DistributeResult>
  </NS1:DistributeResponse>


but I would prefer something like

Code:

<DistributeResponse xmlns="http://www.ibm.com/TUAWBIDistributor/">
  <DistributeResult>true</DistributeResult>
</DistributeResponse>


Any ideas to force a namespace as the default one?

Thanks in advance,
Andrea Tedone
IBM IT Specialist


Also member of www.worldcommunitygrid.org as Testo


Last edited by Testo on Thu Feb 10, 2005 5:09 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Michael Dag
PostPosted: Thu Feb 10, 2005 4:07 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

See if this helps: http://www.mqseries.net/phpBB2/viewtopic.php?t=17749&highlight=xml+attribute
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Testo
PostPosted: Thu Feb 10, 2005 5:12 am    Post subject: Thanks but... Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

Thank you Michael for your reply.

I have already thought about this solution (i.e. using the XML domain and setting the default namespace as an attribute of the first tag) but it is not very elegant. In addition, we need the XMLNS domain because we are using .NET webservices and WBI Adapters.

Cheers,
Andrea
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XMLNS - default namespace vs prefix
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.