0

我正在处理 XML 文件并不断收到打击错误。

[03-Nov-2013 19:00:27 UTC] PHP Warning:  SimpleXMLElement::__construct(): Entity: line 83: parser error : Opening and ending tag mismatch: a line 79 and h1 in /home/ihklm/public_html/mydir/xml_theme.php on line 98
[03-Nov-2013 19:00:27 UTC] PHP Warning:  SimpleXMLElement::__construct(): </h1>               in /home/ihklm/public_html/mydir/xml_theme.php on line 98
[03-Nov-2013 19:00:27 UTC] PHP Warning:  SimpleXMLElement::__construct():      ^ in /home/ihklm/public_html/mydir/xml_theme.php on line 98
[03-Nov-2013 19:00:27 UTC] PHP Warning:  SimpleXMLElement::__construct(): Entity: line 152: parser error : Opening and ending tag mismatch: hr line 145 and ul in /home/ihklm/public_html/mydir/xml_theme.php on line 98
[03-Nov-2013 19:00:27 UTC] PHP Warning:  SimpleXMLElement::__construct():       </ul> in /home/ihklm/public_html/mydir/xml_theme.php on line 98
[03-Nov-2013 19:00:27 UTC] PHP Warning:  SimpleXMLElement::__construct():            ^ in 

我尝试了各种方法,但下面没有运气是我的 PHP 代码

$body = $h->get();    
// echo $body;
$xml = new SimpleXMLElement($body);

谁能分享一些关于我如何解决这个问题的信息。

先感谢您。

问候,莫娜

4

0 回答 0