Posted: Wed Apr 25, 2007 11:46 am Post subject: This XML MSg is not working.PLZ help me out why?
Novice
Joined: 22 Apr 2007 Posts: 17
The Below is the msg which i am trying to access the incoming xml from the Message tree and want it to store in a global environment but while doing
MbElement OutXML=message.getRootElement().getLastChild().getLastChild(); this is showing null value for OutXML.
but some different code is working .
can anybody tell why this is not working for above given Expression.
Joined: 15 May 2001 Posts: 540 Location: New Zealand
Your post is not clear as to what the problem is ... however you should note that if you store a XML message in the Environment for later retrieval you must store it under an XML or XMLNS branch, e.g:
Code:
CREATE LASTCHILD OF Environment DOMAIN 'XML' TYPE Name;
SET Environment.XML.AscendantOne = InputRoot.XML.AscendantOne;
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