Пример #1
0
 /**
  *  This function returns the XML as a string.
  *
  *  @param $pretty  (Optional) Returns the "pretty" version of the XML - with indentation.
  *
  *  @returns  The XML code as a string.
  */
 function toString($pretty = true)
 {
     return "<?xml version=\"" . $this->version . "\" encoding=\"" . $this->encoding . "\"?>" . ($pretty ? "\n" : "") . trim(parent::toString($pretty));
 }