I have a fixed length flat file coming in into which I have to look at the first line's 4th to 7th positions. Based on that if it is "1234" then I need to route it to the receiver else I will ignore in the receiver determination.
Example input file -
We have module configuration where we are converting this to a line value pair something like this -
<?xml version="1.0" encoding="utf-8"?>
When I tried to test my xpath in xpath tester it is working fine with the below xpath expressions -
1. /ns:GMTLog/Line[Value] --> This returned the first record completely
2. substring(/ns:GMTLog/Line[Value], 4, 4) --> This returned exactly what I am expecting "1234"
But the above 2 are not working in condition editor.
May I know the exact xpath expression to be used in this case to route the message to receiver when 4th to 7th position is "1234".
Thanks a lot in advance.