/**
  * Gets the current XML node as a true string.
  *
  * @return string The current XML node as a true string.
  */
 public function to_string()
 {
     $s = parent::__toString();
     if ($this->attributes()) {
         return json_decode(substr($s, 14));
     }
     return $s;
 }
Example #2
0
File: element.php Project: neves/qi
 public function __toString()
 {
   $str = parent::__toString();
   return $this->_iso() ? utf8_decode($str) : $str;
 }