Forum Discussion

David_Shapiro's avatar
David_Shapiro
Occasional Contributor
12 years ago

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&colon; ... <multiRef id="id...
  • AlexKaras's avatar
    12 years ago
    Hi 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...