How to include XML file in PHP
Dear friends,
I would like to include a xml file in my php file.
But the php file giving me the following error:
Parse error: syntax error, unexpected T_STRING in E:\WEB\Server\xampp\htdocs\test3\caching\news.xml on line 1
I may identified the problem; as the code of xml file starting with "<?xml …..", its creates problem.
Please tell me how can I include xml file.
XML file: news.xml
Code (text):
<?xml version=’1.0′ encoding=’UTF-8′ ?>
<rss version=’2.0′>
<channel>…
How to include XML file in PHP
See original post by KingCobra
Leave a Reply
You must be logged in to post a comment.