protected function setErrorXml(maxException $_e) { $this->responseThemeName = null; $this->xml = new DOMDocument(); $this->xml->loadXML('<?xml version="1.0" encoding="utf-8"?><response id="error"><error error_id="' . $_e->getCode() . '">' . $_e->getMessage() . '</error></response>'); }