分类:
2008-04-14 15:24:08
下面是例子运行对结果:
下面是通过函数getSaveData()返回的整个xml数据的数组
Array ( [name] => 华联 [address] => 北京长安街-9999号 [desc] => 连锁超市 [cat_food] => Array ( [attrs] => Array ( [id] => food ) [goods_food11] => Array ( [name] => food11 [price] => 12.90 [attrs] => Array ( [id] => food11 ) ) [goods_food12] => Array ( [name] => food12 [price] => 22.10 [desc] => Array ( [value] => 好东西推荐 [attrs] => Array ( [creator] => hahawen ) ) [attrs] => Array ( [id] => food12 ) ) ) [cat_1] => Array ( [goods_tel21] => Array ( [name] => tel21 [price] => 1290 [attrs] => Array ( [id] => tel21 ) ) ) [cat_coat] => Array ( [attrs] => Array ( [id] => coat ) [goods_coat31] => Array ( [name] => coat31 [price] => 112 [attrs] => Array ( [id] => coat31 ) ) [goods_coat32] => Array ( [name] => coat32 [price] => 45 [attrs] => Array ( [id] => coat32 ) ) ) [special_hot] => Array ( [attrs] => Array ( [id] => hot ) [goods_0] => Array ( [name] => hot41 [price] => 99 ) ) ) |
<?xml version="1.0" encoding="GB2312" ?> |