Feeds Importer Xpath import where guid is at the top of the context Trying to import from an XML feed using Feeds Importer XPath XML. I have had an import working from this same feed before but with uniqueness based on a title field which is no longer apropriate.

I'm trying to alter the import so that I now use a guid. The problem is that the ID I need to use is only located within the top level element where the context starts.

XML looks like:

&lt;vacancies&gt;
  &lt;vacancy id="111427"&gt;
    &lt;uri&gt;https://data.ox.ac.uk/id/vacancy/111427&lt;/uri&gt;
    &lt;url&gt;https://data.ox.ac.uk/doc/vacancy/111427&lt;/url&gt;
    &lt;webpage&gt;https://www.recruit.ox.ac.uk/pls/hrisliverecruit...&lt;/webpage&gt;
    &lt;label&gt;Postdoctoral Scientist - Protein Biochemistry&lt;/label&gt;
    &lt;opens&gt;2014-01-16T09:08:14+00:00&lt;/opens&gt;
    &lt;closes&gt;2014-02-17T12:00:00+00:00&lt;/closes&gt;
    ...


My context is
    /vacancies/vacancy
and I am mapping my guid to @id which I think is the correct syntax.

The import doesn't work correctly, I get no nodes and no errors. What am I doing wrong (if anything)? There is nothing I can do about the XML schema incidentally, if that is where the problem is.
I just did a quick test of this, with your sample data, and it works correctly.

In the debug options you can enable error reporting, as well as, show the outputs of various queries.