我有XML文件和PHP脚本来处理这个xml。为什么脚本找不到标签?为什么xpath在发出警告时失败:PHP Warning: DOMXPath::query(): Invalid expression in test.php on line 7
PHP Warning: Invalid argument
我想得到所有的html类是vip,并打印每个vip的结果。
$text = "<enty> hello baby, we love osama:) That means 2016 set a global heat record<enty2016>for the third year in a row</enty2016>according to NOAA and NASA, who held a joint press conference on Wednesday to discuss the record. <endentry> &