我有一个格式为:
<!--Vendor: A, Format: IFrame, IO: -->
<iframe src="xyz.com "scrolling="no" width="180" height="150" frameborder="0" marginheight="0" marginwidth="0" title="Advertisement"></iframe>
这对我来说看起来像 xml 字符串。但是 $xml=new SimpleXMLElement($string) 给出格式错误。我尝试添加最后但没有用。我需要从中提取各种参数。最好的方法是什么?