David_Shapiro
12 years agoOccasional Contributor
Specific xsi:type=ns*:RemoteUser name values only needed
Hello, I have xml soapui reponse with many xsi:type returns, but I only response from one with particular type. For example, The xml data: ... <multiRef id="id...
- 12 years agoHi David,
This namespace-agnostic XPath worked for me:
//multiRef[contains(@*[local-name()='type'], 'RemoteUser')]/*[local-name()='name']/text()
If you need not just a values of the name nodes, but the nodes itself, try this:
//multiRef[contains(@*[local-name()='type'], 'RemoteUser')]/*[local-name()='name']
Hope it will help...