/**
  * Constructor.
  * @param string $data The well-formed XML string
  * @param string $version The XML version of the string
  * @param string $encoding The encoding of the string
  */
 public function __construct($data, $version = '1.0', $encoding = null)
 {
     if (is_null($encoding)) {
         $encoding = sfConfig::get('sf_charset', 'utf-8');
     }
     mb_internal_encoding($encoding);
     $this->version = $version;
     $this->encoding = $encoding;
     parent::__construct($data);
 }
 /**
  * Constructor.
  * @param string $data The well-formed XML string
  * @param string $version The XML version of the string
  * @param string $encoding The encoding of the string
  */
 public function __construct($data, $version = null, $encoding = null)
 {
     $this->version = $version;
     $this->encoding = $encoding;
     parent::__construct($data);
 }