Only return slimmed down version of feed

158 Views Asked by At

I'm trying to create a new yahoo pipe that will only returned a slimmed down version of an xml.

Say my original XML looks like:

<?xml version="1.0" encoding="UTF-8" ?>
<name>Joe bloggs</name>
<age>31</age>
<description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquam metus id eros blandit vel convallis nunc accumsan. Fusce adipiscing eros a enim feugiat vestibulum. Cras vulputate malesuada neque vel ultricies. Nunc commodo condimentum risus, eu interdum odio rutrum ut. Nullam nec neque eget dolor tristique dignissim sit amet non nibh. Donec sagittis, elit eget tempus laoreet, tellus eros gravida nunc, eu elementum sem turpis eget velit. In hac habitasse platea dictumst. Donec sed nibh nec arcu feugiat malesuada nec sollicitudin neque. Morbi egestas gravida blandit. Praesent luctus ipsum sed sem porta a tempus ipsum congue. Cras non lectus metus. Fusce non purus quam, vel convallis urna. Aenean dignissim consequat tincidunt. Nunc posuere pulvinar est, id pretium sem vestibulum non</description>.

I'm trying to create a yahoo pipe that will change the tag names, in which I'm using the rename module, and it works fine.

Now, I'm wanting to get rid of the description tag, so my XML only returns name and age.

How can I do that with yahoo pipes?

Cheers in advance for any help

2

There are 2 best solutions below

2
On BEST ANSWER

Use the "Create RSS" module as the last step in the chain. Then only include the fields you want.

1
On

Use the Regex module on the description field and replace .* with an empty textfield. That deletes the field.