|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Deleting namespaces from message tree XML domain |
« View previous topic :: View next topic » |
Author |
Message
|
Jason_Mannering |
Posted: Thu Mar 24, 2005 2:39 am Post subject: Deleting namespaces from message tree XML domain |
|
|
 Newbie
Joined: 24 Mar 2005 Posts: 8 Location: London
|
I am needing to remove the namespace from the message tree representation of the following structure using ESQL,
<GetBrandModelHierarchyResponse xmlns="http://www.hotdog.com">
<Brand>
<BrandCd>0</BrandCd>
....
<GetBrandModelHierarchyResponse/>
So that I am left with the following structure,
<GetBrandModelHierarchyResponse>
<Brand>
<BrandCd>0</BrandCd>
....
<GetBrandModelHierarchyResponse/>
Any ideas how I might be able to achieve this using ESQL?
Jason |
|
Back to top |
|
 |
Jason_Mannering |
Posted: Thu Mar 24, 2005 3:48 am Post subject: |
|
|
 Newbie
Joined: 24 Mar 2005 Posts: 8 Location: London
|
After hours of struggling, and several posts to several communities, a collegue suggested teh following solution which worked a treat:
DELETE FIELD OutputRoot.XML.AggResult.Subsys.<ElementName>.(XML.attr)"<AttributeName>"; |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 24, 2005 5:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You could also use the same pathing to set the field to NULL, rather than deleting it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
javaforvivek |
Posted: Mon Mar 28, 2005 11:20 pm Post subject: |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
I have the same situation. But after removing the xmlns, I want to validate the message against my msg set.
Surely, I can't do it on the MQInputNode, because first I have to remove the 'xmlns' attribute.
How can I do it? _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|