|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
very simple Tree copy works really wierd .... |
« View previous topic :: View next topic » |
Author |
Message
|
guest |
Posted: Mon Apr 04, 2005 12:18 pm Post subject: very simple Tree copy works really wierd .... |
|
|
Acolyte
Joined: 11 Aug 2003 Posts: 52
|
I need to do a tree copy , below is the structure of my input XML ...
<A>
<A1>asd</A1>
<A2>
<A3>
<A4>asdf</A4>
</A3>
</A2>
</A>
ESQL code is ..
Set OutputRoot.XML.B.B1.W1 = InputRoot.XML.A.A2 ;
Shouldnt i expect my output to be
<B>
<B1>
<W1>
<A3><A4>asdf</A4></A3>
</W1>
</B1>
</B> ??? ..
Currently i am getting a empty tag <B><W1/></B> , as if NULL is being assigned to W1 ...
Wonder what is happening , i know we can use reference to copy part of the tree .. But i would like to know why this wouldnt work and get my understanding correct .
This is on WBI MB 5.0.4 ..
Thanks |
|
Back to top |
|
 |
waugh |
Posted: Mon Apr 04, 2005 12:32 pm Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
replace
Set OutputRoot.XML.B.B1.W1 = InputRoot.XML.A.A2;
with
Set OutputRoot.XML.B.B1.W1.*[<] = InputRoot.XML.A.A2.*[<] ;
Last edited by waugh on Mon Apr 04, 2005 12:33 pm; edited 1 time in total |
|
Back to top |
|
 |
fschofer |
Posted: Mon Apr 04, 2005 12:32 pm Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Hi,
which default parser have you configured in your MQInput Node?
If you have defined nothing, your input message is parsed as a BLOB
and InputRoot.XML.A.A2 resolves to NULL.
Greetings
Frank |
|
Back to top |
|
 |
waugh |
Posted: Mon Apr 04, 2005 12:38 pm Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
fschofer is right,
i think you have nothing or BLOB for Message Domain under Default properties. |
|
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
|
|
|
|