Closed (fixed)
Project:
Feeds XPath Parser
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2010 at 21:11 UTC
Updated:
27 Jul 2010 at 10:11 UTC
Hi!
I am mapping some XML feed elements to a custom content type (cck) Everything is going fine except when I am trying to map some nodes with attributes. Let me put an example.
XML File
<book>
<book>
<title>Winnie the Pooh</title>
<reviews>
<review lang="en_GB">Great Book</review>
<review lang="es_ES">Tremendo libro</review>
</reviews>
</book>
</books>
I just want to extract the review node with the attribute "en_GB"
I used:
/book/books/reviews/review[@lang='en_GB']
and
/book/books/reviews/review[1]
The node field returns empty.
The other mapping works just perfect
Example: /books/book/title
Any suggestions?
Comments
Comment #1
avantwaves commentedComment #2
hanno commentedMaybe you need an extra slash, worked for me in another situation with attributes. will this do?:
/book/books/reviews/review/[@lang='en_GB']
Comment #3
avantwaves commentedThanks Hanno, unfortunately that didn't work... :( I will try installing the dev version of the module and I will report back.
Wait! I think that this module don't have a dev version! :)
Comment #4
avantwaves commentedI installed the dev version of feeds_xpathparser and this is working pretty well.
Comment #5
alex_b commentedWrong issue queue?
Comment #6
avantwaves commentedComment #7
hanno commentedgreat that it is working now.