Xpath query with namespace

0

I'm going around and looking for info on the internet but I can not find anything. How can I mount an Xpath query to select for example the Sun: manager node? I'm using BaseX Gui to do tests, if I load some Xml without namespaces, there's no problem, but this one that has a namespace, I do not give with the key. Help pleases !!! Thanks.

    
asked by ramon 02.06.2018 в 21:35
source

1 answer

0

Ok, I answer.

If we want to select the manager node // * [local-name () = 'manager']

if we also have more than one manager node and we want to select only whose language is 'is' // [local-name () = 'manager'] [ [local-name () = 'language' and text () = 'is']]

And if we also only want to select your nif // [local-name () = 'manager'] [ [local-name () = 'language' and text () = 'is']] / * [local-name () = 'nif']

    
answered by 07.06.2018 / 00:18
source