To get the whole xml configuration file (like xml, which I suppose you mean) ...
Mage::app()->getConfig()->getXmlString();
It will be much easier to check if you save it in a file. The following will save the file in var / tmp / configxml.xml ...
file_put_contents(Mage::getBaseDir('tmp').DS.'configxml.xml', Mage::app()->getConfig()->getXmlString());
Obviously, Magento must be loaded first.
source
share