url为:http://php.weather.sina.com.cn/xml.php?city=温州&password=DJOYnieT8234jlsK&day=0
正常获取的xml应该为:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- published at 2013-01-14 21:23:54 -->
<Profiles>
<Weather>
<city>温州</city>
<status1>晴</status1>
<status2>多云</status2>
<figure1>qing</figure1>
<figure2>duoyun</figure2>
<direction1>东北风</direction1>
<direction2>东北风</direction2>
<power1>4-5</power1>
<power2>3-4</power2>
<temperature1>16</temperature1>
<temperature2>6</temperature2>
<ssd>0</ssd>
<tgd1>11</tgd1>
<tgd2>11</tgd2>
<zwx>1</zwx>
<ktk>7</ktk>
<pollution>1</pollution>
<xcz>5</xcz>
<zho />
<diy />
<fas />
<chy>5</chy>
<zho_shuoming>暂无</zho_shuoming>
<diy_shuoming>暂无</diy_shuoming>
<fas_shuoming>暂无</fas_shuoming>
<chy_shuoming>风衣、大衣、夹大衣、外套、毛衣、毛套装、西服套装、薄棉外套</chy_shuoming>
<pollution_l>好</pollution_l>
<zwx_l>最弱</zwx_l>
<ssd_l>较凉</ssd_l>
<fas_l>暂无</fas_l>
<zho_l>暂无</zho_l>
<chy_l>毛衣类</chy_l>
<ktk_l>建议开启(制热)</ktk_l>
<xcz_l>不适宜</xcz_l>
<diy_l>暂无</diy_l>
<pollution_s>非常有利于空气污染物扩散</pollution_s>
<zwx_s>紫外线最弱</zwx_s>
<ssd_s>老年、幼儿、体弱者外出需要带上薄围巾、薄手套。</ssd_s>
<ktk_s>建议开启空调</ktk_s>
<xcz_s>洗车后当日有降水、大风或沙尘天气,或当日特别寒冷,容易结冰。不适宜洗车。</xcz_s>
<gm>2</gm>
<gm_l>易发期</gm_l>
<gm_s>天气很凉,季节转换的气候,慎重增加衣服;较易引起感冒;</gm_s>
<yd>5</yd>
<yd_l>不适宜</yd_l>
<yd_s>虽然晴空万里,但是天气较凉,多数人不适宜户外运动;</yd_s>
<savedate_weather>2013-01-14</savedate_weather>
<savedate_life>2013-01-14</savedate_life>
<savedate_zhishu>2013-01-14</savedate_zhishu>
</Weather>
</Profiles>
但通过HttpGet方法或者url.openStream方法获取的xml没有<Weather>....</Weather>部分,即只得到
<?xml version="1.0" encoding="UTF-8" ?>
<!-- published at 2013-01-14 21:23:54 -->
<Profiles>
</Profiles>
导致xml解析只能获取到<Profiles>,不能获取<city>,<status1>等,求高手解答
android xml