1

Drupal 7 Feeds

Create a content type "test system" with 2 fields Content type: test system

field: 
id, integer
name, text

Create a XML file, and upload it to the server.

<?xml version="1.0" encoding="UTF-8"?>
<response>
<result>
<id>298</id>
<name>This is ID 298 description</name>
</result>
<result>
<id>452</id>
<name>This is ID 452 description</name>
</result>
</response>

Create an Feed Importer to use this uploaded file to create/update "test system" content.

But it is not importing content feeds. It doesnot display any error, but displays only a message i.e "There are no new nodes". There are no new nodes. STATUS: No imported items.

The modules are:

Feeds 7.x-2.0-alpha8+68-dev Aggregates RSS/Atom/RDF feeds, imports CSV files and more.

Feeds Admin UI 7.x-2.0-alpha8+68-dev Administrative UI for Feeds module.

Feeds Tamper 7.x-1.0-beta3+52-dev Modify feeds data before it gets saved.

Feeds Tamper Admin UI 7.x-1.0-beta3+52-dev Administrative UI for Feeds Tamper module.

Feeds XPath Parser 7.x-1.0 Parse an XML or HTML document using XPath.

  • Where are your xpath parser settings? – ar7max Aug 28 '15 at 13:18
1

Try next config

context: /response/result
id: id/text()
name: name/text()

You can always check Debug options -> "Show error messages" option on importer's import page (omg) to see if there is some error if its not checked.

|improve this answer|||||
0

Nothing wrong with the XML. When I use "//response/result" as context, and "id" and "name" as xpath queries, it imports just fine.

|improve this answer|||||
  • R u and author is one person? – ar7max Sep 1 '15 at 12:07
  • No. Why would you think so? – Drupalaar Sep 3 '15 at 17:17
  • sry, I misunderstood smthng, my apologies – ar7max Sep 3 '15 at 20:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.