You are here:  » Import only part of xml?

Support Forum



Import only part of xml?

Submitted by mediadream on Wed, 2009-05-13 08:38 in

Hello!

Can I define or change something in the script to only import part of xml feed?

For example: only import product where category = "Mat och dryck"

Is it possible?

Submitted by support on Wed, 2009-05-13 11:44

Hi,

Sure - use the "Drop Record If Not RegExp" filter to do this. Click "Filters" alongside the feed, and then add a new "Drop Record If Not RegExp" filter to the Category field, then in the text box on the configuration page for the filter, enter the text to match, e.g.

Mat och dryck

If you wanted to import 2 or more categories, you can do this as well, e.g.

(Mat och dryck|Another Category)

...with as many other categories to match separated by a pipe | character.

Cheers,
David.