[eluser]bennr[/eluser]
I have created a model which generates all my xml content from mysql
all works except the $this->dbutil->xml_from_result
function creates poor formatted xml
e.g
Code:
<root>
<element>
<id></id>
<title></title>
<desc></desc>
<sub_title></sub_title>
<image></image>
<thumb></thumb>
<link></link>
</element>
<root>
its not closing the tag correctly
this is the formatting which is suggested by the user guide
Code:
$config = array (
'root' => 'root',
'element' => 'element',
'newline' => "\n",
'tab' => "\t"
);
does anyone know how I can fix this issue
im using ci 1.7.1