Quantcast
Channel: Feeds Importer Xpath import where guid is at the top of the context - Drupal Answers
Viewing all articles
Browse latest Browse all 2

Feeds Importer Xpath import where guid is at the top of the context

$
0
0

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:

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

My context is /vacancies/vacancyand 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.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>