When importing a HTML website (http://www.dh.de/projekte) I'm able to successfully import a xpath into the body field or any custom field.

When I try to import that same xpath into Title, the value of Title just becomes "Array"

Second: only the first item gets imported, which is aktien . net, the rest won't get imported. I tried around with unique GUID but it didn't work.

context: /
title: .//table/tbody/tr/td/a
body: .//table/tbody/tr/td/a
GUID: .//table/tbody/tr/td/a

D7 all modules up to date - dev version of feeds_xpathparser

Comments

d.holmen@gmail.com’s picture

Has this been resolved? I still get it.

twistor’s picture

Maybe try,

context: //table[@class="views-table cols-1"]/tbody/tr/td
title: a
Mizpah’s picture

Issue summary: View changes

Currently having this issue - if I make title unique, I get an SQL 42000 issue.
If I make title not unique - I get 1 node (not the 10 in the data) and the title lists as 'Array'
Adding a GUID field makes, and setting it to a unique value in the import makes no difference.

byronveale’s picture

For me, my ignorance of proper Context and path settings did me in. I was using "//" at the beginning of each of my fields in the "Settings for XPath XML parser" section.

So, setting "//context_name" for context, then just "attribute_name" (without leading "/" or "//") in the rest of my field settings eliminated this error.

Hope this helps someone else trying to do this…