task engine, improved error message for xml processing, fixes #214