xPath //elementName expression "stopped" working
Posted: Tue Oct 05, 2021 1:31 am
let's say I would like to target all `head` elements within a TEI XML document; I would normally use the expression
for some unclear ( to me at least) reason and after performing some queries in the same session this query stopped working ; so I quit the app reopened the file but it still wouldn't work either on the xPath search nor when using XPath XQuery Builder instead whenever I ran a query I got the following pop up message
I created a new TEI All document using oXygen's file templates, but I still had the same issue
As I was digging in oXygen's forum I came across an old post and I tried the following expression which gave me the correct results
However I've never had to use a prefix before while using the file templates and sticking only to TEI, am I missing something super obvious? Is there a setting I should check?
Code: Select all
//head
XML Refactoring still worked fine…The XPath query returned no results. XPath scope: Current File
I created a new TEI All document using oXygen's file templates, but I still had the same issue
As I was digging in oXygen's forum I came across an old post and I tried the following expression
Code: Select all
//default:head
However I've never had to use a prefix before while using the file templates and sticking only to TEI, am I missing something super obvious? Is there a setting I should check?