private $version;
private $encoding;
- public function __construct(array $options)
+ public function __construct(array $options = array())
{
$default = array(
"comments" => array(
return $xml;
}
- public function createXml(&$data, $root = "response")
+ public function createXml(&$data, $root = "root")
{
$array = array($root => $data);
$xmlStr = $this->array2xml($array);