This change is probably not directly related to the feature that you are introducing with this PR. I'm not a XPath expert and I have not immediate way to test the xml workflow so I need help to understand why this change is required and what effect it produce.
(you are removing the starting // in the xpath expression, should this mean that you don't need to look from the root of the document?)