function __construct() { require 'XML/Serializer.php'; parent::__construct(); $this->mode = 'xml'; $this->mime_type = 'application/xml'; $this->charset = 'utf-8'; self::$ob_level = ob_get_level(); ob_start(); }