Author |
Message
|
namakkal |
Posted: Wed May 06, 2009 11:18 pm Post subject: Removing namespace of attribute |
|
|
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 |
|
 |
Vitor |
Posted: Wed May 06, 2009 11:23 pm Post subject: Re: Removing namespace of attribute |
|
|
 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 |
|
 |
kash3338 |
Posted: Thu May 07, 2009 12:24 am Post subject: Re: Removing namespace of attribute |
|
|
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 |
|
 |
kimbert |
Posted: Thu May 07, 2009 12:25 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
Vitor |
Posted: Thu May 07, 2009 12:32 am Post subject: Re: Removing namespace of attribute |
|
|
 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 |
|
 |
elvis_gn |
Posted: Thu May 07, 2009 1:44 am Post subject: |
|
|
 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 |
|
 |
|