I cannot figure out if I can get information out of elements, not the entirety of the element with this module.

Like if an element is this:

<abc>Another name for this: XYZ</abc>

And I just want to map whatever appears after the : to a field.

Is this possible? If not w/ Feeds XPath Parser, in conjunction with another module?

Or is this outside of XPath altogether, to parse within elements?

Okay thanks!

Comments

l_o_l’s picture

Have not been able to use it yet, but I guess this is what http://drupal.org/project/feeds_tamper was made for.

twistor’s picture

Status: Active » Fixed

Correct, Feeds Tamper is the way to go here. XPath can only parse within XML elements. After that, you can add a regex plugin from Feeds Tamper

^.*:(.*)
$1

That should work for you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

j9’s picture

Excellent, thanks Gys and twistor!