for a plugin we generate an XML output which works on several systems without a problem. One system though adds extra content.
In the related controller we do have the following lines:
$this->getResponse()->setHeader('Content-Type', 'text/xml; charset=utf-8');
$somevars= array('protocol'=>$protocol,'server_name'=> $_SERVER['SERVER_NAME']);
$this->loadLayout()->getLayout()->getBlock('root')->setTemplate('foo/bar.xml.phtml')->setData('somevars',$somevars);
As said, this works on several systems but not on every system it seems. My question now is, what can we do to prevent magento from adding and/or rendering any other content except the content added via the above lines.
I tried unsetBlock, createClock, addBlock, but still seem to have some issues understanding the concept or the correct order.
Any help is appreciated.