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.
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.
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.
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