Why the function return me this errors?
1:Changeset processing failed
2:Error while parsing an XML stream
it is a code in the controller:
it is a code in the view: