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 » Removing namespace of attribute

Post new topic  Reply to topic
 Removing namespace of attribute « View previous topic :: View next topic » 
Author Message
namakkal
PostPosted: Wed May 06, 2009 11:18 pm    Post subject: Removing namespace of attribute Reply with quote

Novice

Joined: 06 Feb 2009
Posts: 19

Hi,

How do i remove namespace of an Attribute in the input XML?

For example, my input xml is say,
<Root ns1:attr1="abc" ns1:attr2="xyz"/>

How do i remove the namespace in these attributes?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed May 06, 2009 11:23 pm    Post subject: Re: Removing namespace of attribute Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

namakkal wrote:
How do i remove namespace of an Attribute in the input XML?


Don't put the namespace in the output.

Your question (and the apparent answer) is so obvious you've presumably tried and failed. If you could post the code snippet you tried, and details of what happened (or didn't happen) we might be able to assist further.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kash3338
PostPosted: Thu May 07, 2009 12:24 am    Post subject: Re: Removing namespace of attribute Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Vitor wrote:
namakkal wrote:
How do i remove namespace of an Attribute in the input XML?


Don't put the namespace in the output.

Your question (and the apparent answer) is so obvious you've presumably tried and failed. If you could post the code snippet you tried, and details of what happened (or didn't happen) we might be able to assist further.


Actually we get the input xml from a third party system in our queue. we read the xml from the queue and it comes like this,

<Root ns1:a="abc" ns1:b="xyz"/>

Here i want to remove the namespace before i send this to the next application. How do i remove this namespace?
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu May 07, 2009 12:25 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please do not double-post: http://www.mqseries.net/phpBB2/viewtopic.php?t=48996
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu May 07, 2009 12:32 am    Post subject: Re: Removing namespace of attribute Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

kash3338 wrote:
How do i remove this namespace?


I repeat my responses.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Thu May 07, 2009 1:44 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi kash3338,

Your tag 'Root' does not even have the same namespace...it could be using a default or nothing at all.

You need to post your entire and actual xml, and what you've tried as of now...there won't be any training given here.

Regards.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Removing namespace of attribute
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.