I was given the following XML:
-
Item
In XPath, you have to assign a prefix to the namespace. How you do that depends on the XPath software/library you are using, but assuming you associate the namespace URI http://some_url
with the namespace prefix someUrl
, you can change your XPath expression as follows:
/root/items/item/details/someUrl:data