Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XPath for multiple name value pairs

3010404Dec 21 2016 — edited Feb 26 2020

Please find below xml payload and what will be the xpath for fetching department/department id/etc. with same name value pairs.

XML Payload:

<ns2:BeneficiaryDetails>

<ns2:attributes>

<ns2:Name>Department</ns2:Name>

<ns2:Value>IT</ns2:Value>

</ns2:attributes>

<ns2:attributes>

<ns2:Name>Department ID</ns2:Name>

<ns2:Value>37266</ns2:Value>

</ns2:attributes>

<ns2:attributes>

<ns2:Name>Department Owner</ns2:Name>

<ns2:Value>James Turbott</ns2:Value>

</ns2:attributes>

</ns2:BeneficiaryDetails>

Tried below Xpath didn't worked.

XPath:

/task:task/task:payload/ns1:BeneficiaryDetails/ns1:attributes[Name='Department']/Value

This post has been answered by vladodias on Dec 22 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2017
Added on Dec 21 2016
2 comments
450 views