xml里面的图片链接能不能把图片下载下来
xml里面的格式如下:- <photo>
<mediaId>53323</mediaId>
<fileName size="small">http://static.elong.com/images/hotels/hotelimages/1/40101002_1_5_0_1.jpg</fileName>
<fileName size="large">http://static.elong.com/images/hotels/hotelimages/1/40101002_0_5_0_1.jpg</fileName>
<caption />
<displayName>酒店外观</displayName>
<credit />
<defaultShow>0</defaultShow>
</photo>
- <photo>
<mediaId>53325</mediaId>
<fileName size="small">http://static.elong.com/images/hotels/hotelimages/1/40101002_1_5_0_2.jpg</fileName>
<fileName size="large">http://static.elong.com/images/hotels/hotelimages/1/40101002_0_5_0_2.jpg</fileName>
<caption />
<displayName>酒店外观</displayName>
<credit />
<defaultShow>0</defaultShow>
</photo>
- <photo>
<mediaId>53313</mediaId>
<fileName size="small">http://static.elong.com/images/hotels/hotelimages/1/40101002_1_6_0_1.jpg</fileName>
<fileName size="large">http://static.elong.com/images/hotels/hotelimages/1/40101002_0_6_0_1.jpg</fileName>
<caption />
<displayName>大堂</displayName>
<credit />
<defaultShow>0</defaultShow>
</photo>
能不能在火车头里面把图片下载下来,我试来不行呀 你改成 img的标签就可以下载了。 多谢楼上的,解决 为了怕后来的不清楚,把http://static.elong.com/images/hotels/hotelimages/1/40101002_0_6_0_1.jpg
改成<img src="http://static.elong.com/images/hotels/hotelimages/1/40101002_0_6_0_1.jpg">就可以下载了
页:
[1]