When we made an xml output today, we found that the xml document we directly used echo to input will prompt Error: Object # hasnomethodlsquo; loadrsquo; Error, and then switched to header... when we made an xml output today, we found that the xml document we directly used echo to input will prompt Error: Object # has no method 'load' Error, and then changed header () the output xml header file is fixed. record it below.
The xml length is too similar to that of the txt file, so the total txt file is confused. the code is as follows:
echo '
http://www.phprm.com/
2013-01-22T11:00:18+08:00
'; exit;
The xml output from such a piece of code cannot be verified by xml.
Error: Object # has no method 'load'
The code is as follows:
http://www.phprm.com/
2013-01-22T11:00:18+08:00
Just add a header. after several hours, the code is as follows:
http://www.phprm.com/
2013-01-22T11:00:18+08:00
'; exit;