Have you read the top section of the XML Libraries help ? I initially skipped over it like probably most people do, but there is really important information there about how it parses the XML and the two different python modules that can be used for parsing the XML, by default it uses ElementTree, but you can specify to use lxml instead.
From my reading of the matter lxml allows the more advanced xpaths, so perhaps try
Library XML use_lxml=true
Maybe that will give you what you need.
Also I forget which one, but one of these python modules needs a .at the beginning of the xpath, which also caught me out.
Yeah you need to install the lxml module if you don’t already have it.
I wouldn’t go as far as saying fixes, but rather changes, both modules have their pros and cons, but the biggest con of ElementTree is it’s very limited xpath capabilities.
I’ve used both in different situations and I’m no expert on either.