failed with error messages showing that the current iterated value has an XML string representation.
An alternative fix is to explicitly cast the subject of the inner XPath selection to XML, thus
fails to yield any results from the inner search; and I've not so far determined why. Replacing the final
[xml] $_ of course fails because
False is not an XML document.