I have to access the elements in first instance of "SignOff" with 'BMW' namespace (like GroceryTerminal,GroceryTransactionNumber etc) . The ESQL code for this is (The value has been accessed in str0hdr variable.):
Code:
DECLARE ns NAMESPACE 'http://www.nrf-aprts.org/IXRetail/namespace/' (http://www.nrf-aprts.org/IXRetail/namespace/%27);
DECLARE bmw NAMESPACE 'BMW-EXTENSIONS';
DECLARE reftr REFERENCE TO InputRoot.XMLNSC.ns:Log.ns:Transaction;
DECLARE refImmediateTransaction REFERENCE TO reftr.ns:ImmediateTransaction;
SET str0hdr = refImmediateTransaction.bmw:*[1].bmw:Header.bmw:GroceryTerminal;
Can any body please let me know what should be the equivalent java code for the above segment??
In the Java Compute Node, If I directly try to access the value without considering the name space, then I can get something (which is not correct):
But here, logically , I am not getting the desired result as I need the first occurence of "SignOff" with 'BMW' namespace --- Which is correctly coded in ESQL. SO I need assistance to formulate that Java code to that ESQL into Perfect Java.
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