I want to get the value of "Appl" in the second part "DST" and tried the following:
Code:
DECLARE strVersion CHARACTER;
DECLARE MainNS CHARACTER GetTargetNamespace(InputRoot.XMLNS);
DECLARE Main NAMESPACE MainNS ;
DECLARE SubNS CHARACTER FIELDVALUE(InputRoot.XMLNS.xyz:Meldung.(XML.NamespaceDecl)xmlns.abc);
DECLARE Sub NAMESPACE SubNS;
DECLARE appTree REFERENCE TO InputRoot.XMLNS.xyz:Meldung.abc:Header.abc:Version[2];
SET strVersion = FIELDVALUE(appTree.abc:ApplVersion.abc);
However, I can't seem to get my value, the statement DECLARE appTree always generates an Exception.
Joined: 15 May 2001 Posts: 540 Location: New Zealand
Try:
Code:
(XML.NamespaceDecl)xmlns:abc
(colon instead of period).
Also am not sure what you want 'strVersion' to be
Code:
SET strVersion = FIELDVALUE(appTree.abc:ApplVersion.abc);
As the statement stands I don't think it would work...you have an 'Appl' and a 'Version' but no 'ApplVersion', and the final 'abc' needs to qualify something.
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