Android Json 数据解析 II 之 ------xml ,json 两种数据格式之对比
来源:互联网 发布:淘宝联盟没红包 编辑:程序博客网 时间:2024/04/28 21:23
输入: http://maps.googleapis.com/maps/api/geocode/xml?address=SFO&sensor=false 可看到xml格式数据
<?xml version="1.0" encoding="UTF-8"?>
-<GeocodeResponse>
<status>OK</status>
-<result>
<type>airport</type>
<type>airport</type>
<type>establishment</type>
<formatted_address>旧金山国际机场 (SFO), 旧金山, 加利福尼亚州 94128, 美国</formatted_address>
-<address_component>
<long_name>旧金山国际机场</long_name>
<short_name>旧金山国际机场</short_name>
<type>establishment</type>
</address_component>
+<address_component>
<long_name>旧金山</long_name>
<short_name>SF</short_name>
<type>locality</type>
<type>political</type>
</address_component>
+<address_component>
<long_name>南旧金山</long_name>
<short_name>南旧金山</short_name>
<type>administrative_area_level_3</type>
<type>political</type>
</address_component>
+<address_component>
<long_name>圣马刁县</long_name>
<short_name>圣马刁县</short_name>
<type>administrative_area_level_2</type>
<type>political</type>
</address_component>
+<address_component>
<long_name>加利福尼亚州</long_name>
<short_name>CA</short_name>
<type>administrative_area_level_1</type>
<type>political</type>
</address_component>
+<address_component>
<long_name>美国</long_name>
<short_name>US</short_name>
<type>country</type>
<type>political</type>
</address_component>
+<address_component>
<long_name>94128</long_name>
<short_name>94128</short_name>
<type>postal_code</type>
</address_component>
-<geometry>
+<location>
<lat>37.6152230</lat>
<lng>-122.3899790</lng>
</location>
<location_type>APPROXIMATE</location_type>
-<viewport>
-<southwest>
<lat>37.5975438</lat>
<lng>-122.4219938</lng>
</southwest>
+<northeast>
<lat>37.6328980</lat>
<lng>-122.3579642</lng>
</northeast>
</viewport>
-<bounds>
-<southwest>
<lat>37.6043769</lat>
<lng>-122.4014108</lng>
</southwest>
+<northeast>
<lat>37.6392104</lat>
<lng>-122.3549166</lng>
</northeast>
</bounds>
</geometry>
</result>
</GeocodeResponse>
输入: http://maps.googleapis.com/maps/api/geocode/json?address=SFO&sensor=false 可看到 json格式数据
{ "status": "OK", "results": [ { "types": [ "airport", "airport", "establishment" ], "formatted_address": "旧金山国际机场 (SFO), 旧金山, 加利福尼亚州 94128, 美国", "address_components": [
{ "long_name": "旧金山国际机场","short_name": "旧金山国际机场","types": [ "establishment" ]},
{"long_name": "旧金山","short_name": "SF", "types": [ "locality", "political" ]},
{"long_name": "南旧金山","short_name": "南旧金山","types": [ "administrative_area_level_3", "political" ] },
{"long_name": "圣马刁县","short_name": "圣马刁县","types": [ "administrative_area_level_2", "political" ]},
{"long_name": "加利福尼亚州","short_name": "CA","types": [ "administrative_area_level_1", "political" ] },
{"long_name": "美国","short_name": "US","types": [ "country", "political" ]},{"long_name": "94128", "short_name": "94128","types": [ "postal_code" ]}], "geometry": {"location": {"lat": 37.6152230,"lng": -122.3899790},
"location_type": "APPROXIMATE","viewport": {
"southwest": {"lat": 37.5975438,"lng": -122.4219938}, "northeast": {"lat": 37.6328980,"lng": -122.3579642}}, "bounds": {"southwest": {"lat": 37.6043769, "lng": -122.4014108}, "northeast": {"lat": 37.6392104,"lng": -122.3549166}} } } ]}
- Android Json 数据解析 II 之 ------xml ,json 两种数据格式之对比
- android之json格式数据解析
- Android之JSON格式数据解析
- Android之JSON格式数据解析
- Android之JSON格式数据解析
- Android之解析JSON格式数据
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- XML和JSON两种数据交换格式的比较
- 停机问题--The Halting Problem
- GetFileMd5
- 展望宁波it业的发展
- 没有来的火灾...
- [学习记录]Oracle中dual表的用途介绍
- Android Json 数据解析 II 之 ------xml ,json 两种数据格式之对比
- [学习记录] oracle 给用户授权相关sql
- 中国什么职业比较好呢?
- 我把一低版本的android导入,出现这个问题。无法解决。。。有厉害的高手么
- MVC vs. MVP vs. MVVM
- CCESocket 修改版本
- MVC or MVP Pattern – Whats the difference?
- 一周入门WPF-Day1-学习WPF的基础概念
- 参考文献的类型及标识