Im using PEAR XML Serializer to generate xml results from array inputs. I found out that empty array elements are encoded like this: <arraykey/>. I'd rather prefer it this way <arraykey></arraykey>
Below are my options:
$options = array
(
'indent' => ' ',
'defaultTagName' => $this->xml_tag_name,
'addDecl' => true,
'encoding' => 'UTF-8',
'rootName' => $this->xml_root_name,
XML_SERIALIZER_OPTION_RETURN_RESULT => true
);
Are there any other options to add to fix this?