• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML Parsing Error: junk after document element (need Help)

#1
[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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.