CodeIgniter Forums
XML Parsing Error: junk after document element (need Help) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: XML Parsing Error: junk after document element (need Help) (/showthread.php?tid=53322)



XML Parsing Error: junk after document element (need Help) - El Forum - 07-19-2012

[eluser]prasie[/eluser]
Code:
<?php
$this->load->dbutil();

$this->output->set_content_type('text/xml');

$query = $this->db->query("SELECT * FROM ezy_services_users");

$config = array (
                  'root'    => 'root',
                  'element' => 'element',
                  'newline' => "\n",
                  'tab'     => "\t"
                );
echo $this->dbutil->xml_from_result($query,$config);


?>

return an error

XML Parsing Error: junk after document element
Location: http://localhost/ezytravel2/services/search.html
Line Number 10, Column 7:</div><root>
------^


table ezy_services_users

Username Password
prasetya d0nk3yk0ng


Im new to xml from php pls kindly advice


XML Parsing Error: junk after document element (need Help) - El Forum - 07-19-2012

[eluser]prasie[/eluser]
sorry solve already just turn off the notice and warning