brunch
brunch

Reputation: 623

XPath - Select First Child element regardless of parent

I have two XMl documents

<documentA xmlns="namespaceA">
   <IsSuccess>true</IsSuccess>
</documentA>

<documentB xmlns="namespaceB">
   <IsSuccess>true</IsSuccess>
</documentB>

I want to select the IsSuccess element regardless of what the parent node and namespace is

something like //IsSuccess?

Upvotes: 1

Views: 661

Answers (1)

brunch
brunch

Reputation: 623

Found the answer xpath: //*[local-name()='IsSuccess']

Upvotes: 2

Related Questions