switch ($apidata['content-type']) {
case 'xml':
$this->init_document('xml');
+ common_element_start('config');
// XXX: check that all sections and settings are legal XML elements
foreach ($keys as $section => $settings) {
common_element_start($section);
}
common_element_end($section);
}
+ common_element_end('config');
$this->end_document('xml');
break;
case 'json':