fixed xml replacement to work with valid xml, added extensions to task paramaeters