Analyze simplified version of searchplugin with preprocessor instructions

Use StringIO to read the content of these searchplugins and have a
valid XML file.