Hi all,
I am using javax.xml.xpath.XPath to find occurrences of elements (in any level) namely 'Password' in a
SOAP request, and replace them with xxxx to mask them, just before logging SOAP message to console.
Strangely following expression,
//Password
doesn't return any nodes. However
/.//Password returns the node.
Here is the code:
Here is the XML payload:
I appreciate any help.
thanks
IB