Added xml parser and extended the plugin structure