/** * 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; }
public function __toString() { $str = parent::__toString(); return $this->_iso() ? utf8_decode($str) : $str; }