function __construct($object = null, $data_array = null)
 {
     parent::__construct($object, $data_array);
     if (!is_null($object)) {
         $this->wrapped_object = $object;
     }
 }
 public function setEncoding($encoding)
 {
     // done to synchornize with wrapped DOMDocument
     $this->dom->encoding = $encoding;
     parent::setEncoding($encoding);
 }