Hi, I'm importing nodes from an XML webservice using Feeds (7.x-2.0-alpha4), Feeds XPath Parser (7.x-1.0-beta2), and Feeds Tamper (7.x-1.0-beta2). Mostly everything's going great! But I'm trying to figure out the best way to map the value of an element (in my case, either < Status >Active< /Status > or < Status >Inactive< /Status > to the value of the node's 'published' (status) field. I couldn't come up with an xpath query expression that would work, so I downloaded feeds tamper. I've setup Find/Replace plugins that try to change the values < Status >Active< /Status > (or just Active) to 1, and the other for 0, but this isn't doing it. Is this possible? Thanks for any hints!
Comments
Comment #1
geeklight CreditAttribution: geeklight commentedIt looks like you were just working in this area, twistor. I went and got the new convert_boolean.inc plugin (http://drupal.org/node/1080894#comment-4785564, but then to get it the solution to work, had to apply the patch to modify the signature on feeds_tamper_feeds_after_parse (as in http://drupal.org/node/1062744#comment-4259728, which wasn't yet in feeds tamper 7.x-1.0-beta2). After all that, I'm in business...!
Comment #2
twistor CreditAttribution: twistor commentedGlad to see it worked for you. Your issue reminded me that that plugin was lying around somewhere. #1062744: Warning: Parameter 2 to feeds_tamper_feeds_after_parse() was committed a while ago, I'm preparing for a new release.
Comment #3.0
(not verified) CreditAttribution: commentedFixing XML tags