Posted: Wed Dec 12, 2007 2:01 am Post subject: Validating Tag name in ESQL
Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
Guys,
I have searched this forum for this problem, but to no avail (…could be that I’m not searching on the right keywords)… Even searched in the ESQL manual.
I had the following ESQL to get the name of the Root Tag:
SET rootElementTag = FIELDNAME(InputRoot.XML.(XML.Element)*[1]);
And then I used this value in a CASE statement:
CASE rootElementTag
WHEN 'RBACOperationAddRq' THEN
PROPAGATE to LABEL 'RBACOperationAddRq';
WHEN 'RBACOperationDelRq' THEN
PROPAGATE to LABEL 'RBACOperationDelRq';
…
…but now I changed my Input node to be an HTTP Input Node with a SOAP message that lands on the node with the following MRM structure:
MRM
Header
Body
RBACOperationAddRq
…so I want to do the same for this as with the above XML message – I want to get the Name of the Root Tag in the MRM Body using ESQL.
You cannot access the name of the root tag from ESQL if you are using the MRM domain for your XML messages. I suggest that you change your flow to use the XMLNSC domain. Or at least the XMLNS domain.
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
Thanks Kimbert, I just figured that... took me a while... Anyway, I think it is better to use the XMLNS domain so that it is not such an effort to change a lot of stuff if the Input message format changes...
Again, thanks Kimbert.
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