首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >将xml加载到php文件时出现'xmlParseEntityRef: no name‘警告

将xml加载到php文件时出现'xmlParseEntityRef: no name‘警告
EN

Stack Overflow用户
提问于 2011-09-30 07:20:04
回答 6查看 128.9K关注 0票数 100

我正在使用simplexml_load_file在php中读取xml。但是,在尝试加载xml时,它会显示一个警告列表

代码语言:javascript
复制
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

如何纠正以删除这些警告?

(XML是从url http://..../index.php/site/projects生成的&加载到test.php中的一个变量中。我没有写index.php的权限)

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7604436

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档