Author |
Message
|
vasanthi |
Posted: Mon Oct 24, 2005 11:58 am Post subject: environment variable |
|
|
Apprentice
Joined: 23 Apr 2005 Posts: 42
|
Hi
I am having a small problem with the environment variables.
My input message consists of a header and body. the body consists of 5 different items.i have to divide this into individual items add the header and then propagate it to the output queue.
So in order to do this I am copying it into environment variables and then copying the environment variables into output root and sending it to output queue.
So in order to do this I am writing my ESQL as follows
SET Environment. test=InputRoot.MRM.
SET Environment.test1 = InputRoot.MRM.body.response;
SET OutputRoot.MRM= Environment. Test;
SET OutputRoot.MRM.body.response =InputRoot.MRM.body.response.;
SET OutputRoot.MRM.body.response.item= Environment.test1.item[K];
So when I am trying to copy the data from environment to the output root I was able to see all the XML tags which I require in the output queue but I am not able to see the xml attributes.
regards
vasanthi |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Oct 24, 2005 8:24 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi vasanthi,
Can we view ur input message...is this all the coding u've done...what is the output ur getting ???
Are u using a message set in the input/output side ??
We need to get more info....
Regards. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 25, 2005 3:17 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Vasanthi's not able to see the XML Attributes because they aren't copied properly into the Environment - because the Environment doesn't have a parser associated with it.
If vasanthi creates a new element in the environment that has the XML parser associated, then vasanthi will get the right output.
But personally I would use propagate instead, to loop over the input and propagate each individual output. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vasanthi |
Posted: Tue Oct 25, 2005 5:31 am Post subject: |
|
|
Apprentice
Joined: 23 Apr 2005 Posts: 42
|
hi
thanks for responding immediately. As jeff siad "create a new element in the environment that has the XML parser associated" . jeff can you give me an example of how to do this.
regards
vasanthi |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 25, 2005 5:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
vasanthi wrote: |
jeff can you give me an example of how to do this. |
The search button can.
But use propagate instead.
Really. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
elvis_gn |
Posted: Tue Oct 25, 2005 8:23 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
|
Back to top |
|
 |
|