Normally I would set the local environment request variable with:
Set stuff = InputRoot.XML.Input.route_label.
However, I cannot do this since the first tag name is unknown (input#).
Is there a way to access the route_label tag without referencing the input tag?
I've tried XML.Element[1] etc... No luck?
You don't say what version of WMQI you are using. If you are using 2.1, you can use a reference to do this.
Code:
declare aRef reference to InputRoot.XML;
move aRef FIRSTCHILD;
if aRef.route_label = 'high' then
--set routing for high
end if;
If your document has DOCTYPE decls or other processing instructions, you should replace FIRSTCHILD with LASTCHILD, as that's where the root tag will be.
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