If you are using xmlns="<URI>" in your xml file, spin uses DEFAULT as prefix for the namespace.
E.g.: <root xmlns="http://camunda.org"></root> – prefix: DEFAULT, namespace: http://camunda.org so you need
to use XML(xml).xPath("/DEFAULT:root") to fetch the correct element.