Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过上的http请求读取php页上的xml时出现异常_Php_Android - Fatal编程技术网

通过上的http请求读取php页上的xml时出现异常

通过上的http请求读取php页上的xml时出现异常,php,android,Php,Android,当我从php页面读取xml文件时,遇到了一个问题,该文件在另一个链接中包含相同的数据 例外情况是详细的链接 我使用的教程是代码链接。在发送输出之前,尝试将其添加到PHP文件中 <?php header("Content-type: text/xml"); ?> 如果问题仍然存在,请尝试使用此工具检查XML标记。相关:

当我从php页面读取xml文件时,遇到了一个问题,该文件在另一个链接中包含相同的数据

例外情况是详细的链接


我使用的教程是代码链接。

在发送输出之前,尝试将其添加到PHP文件中

<?php header("Content-type: text/xml"); ?>

如果问题仍然存在,请尝试使用此工具检查XML标记。

相关: