这是我的 xml 文件:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Title</title>
<link>http://www.Mydomain.com</link>
<description>Description</description>
<managingEditor>managingEditor</managingEditor>
<webMaster>webMaster</webMaster>
<lastBuildDate>Sat, 19 Oct 2013 09:21:40 +0400</lastBuildDate>
<generator>generator</generator>
<item>
<title>title</title>
<link>link</link>
<description>ATT&T</description>
<author>author</author>
<pubDate>25 Aug 2013 16:52:31 +0400</pubDate>
</item>
</channel>
</rss>
我正在这样阅读:
$xmlDoc = new DOMDocument();
$xmlDoc->load($xml);
但我收到此错误:
Warning: DOMDocument::load(): EntityRef: expecting ';' in
file:///C:/xampp/htdocs/readxml/rss.xml, line: 14 in
因为 ' & ' ... 在描述节点
请指教