js ajax经典实例之解析xml
程序员文章站
2022-05-27 15:38:19
...
test.php文件代码如下:
js ajax经典实例之解析xml
xml.php文件代码如下:
"张三","age"=>"16","weight"=>"50","height"=>"160"),
array("name"=>"李四","age"=>"17","weight"=>"51","height"=>"165"),
array("name"=>"王二","age"=>"18","weight"=>"55","height"=>"170"),
array("name"=>"javior","age"=>"20","weight"=>"68","height"=>"179")
);
$xml="";
$xml.="";
foreach($arr as $k=>$v){
$xml.="";
$xml.="".$v["name"]." ";
$xml.="".$v["age"]." ";
$xml.="".$v["weight"]." ";
$xml.="".$v["height"]." ";
$xml.=" ";
}
$xml.=" ";
echo $xml;
?>
推荐阅读
-
javascript解析ajax返回的xml和json格式数据实例详解
-
javascript解析ajax返回的xml和json格式数据实例详解
-
JS函数内部属性之arguments和this实例解析
-
AJAX解析XML实例之下拉框省、市二级联动
-
Jquery Ajax解析XML数据(同步及异步调用)简单实例
-
Android提高之XML解析与生成实例详解
-
jquery/js 用ajax上传xml文件并解析返回数据展示的实例
-
JS函数内部属性之arguments和this实例解析
-
AJAX解析XML实例之下拉框省、市二级联动
-
Jquery Ajax解析XML数据(同步及异步调用)简单实例_jquery