I'm using this code in Codeigniter to generate XML:
public function get_cuisine()
{
$this->load->dbutil();
$sql = "select * from cuisine";
$query = $this->db->query($sql);
$config = array (
'root' => 'root',
'element' => 'element',
'newline' => "
",
'tab' => ""
);
echo $this->dbutil->xml_from_result($query, $config);
}
But this shows the general print format. How can I get it to show as an XML type page?
See Question&Answers more detail:os