Saya membaca xml di php menggunakan simplexml_load_file. Namun saat mencoba memuat xml, daftar peringatan akan ditampilkan
Warning: simplexml_load_file() [function.simplexml-load-file]: <project orderno="6" campaign_name="International Relief & Development" project in /home/bluecard1/public_html/test.php on line 3
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/bluecard1/public_html/test.php on line 3
Warning: simplexml_load_file() [function.simplexml-load-file]: http://..../index.php/site/projects/:15: parser error : xmlParseEntityRef: no name in /home/bluecard1/public_html/test.php on line 3
Warning: simplexml_load_file() [function.simplexml-load-file]: ional Relief & Development" project_id="313" client_name="International Relief & in /home/bluecard1/public_html/test.php on line 3
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/bluecard1/public_html/test.php on line 3
Warning: simplexml_load_file() [function.simplexml-load-file]: http://..../index.php/site/projects/:15: parser error : xmlParseEntityRef: no name in /home/bluecard1/public_html/test.php on line 3
Bagaimana cara memperbaiki untuk menghapus peringatan ini?
(XML dihasilkan dari url http://..../index.php/site/projects& dimuat ke dalam variabel di test.php. Saya tidak menulis hak istimewa ke index.php)
@di depansimplexml_load_fileatau dengan menambahkan bendera, lihat halaman manual darisimplexml_load_fileuntuk informasi lebih lanjut dan tolong hapus pertanyaan Anda, ini adalah duplikat.