soubar 发表于 2008-6-26 19:14:31

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>

能不能在火车头里面把图片下载下来,我试来不行呀

rq204 发表于 2008-6-26 19:28:17

你改成 img的标签就可以下载了。

soubar 发表于 2008-6-26 20:01:06

多谢楼上的,解决

soubar 发表于 2008-6-26 20:01:43

为了怕后来的不清楚,把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]
查看完整版本: xml里面的图片链接能不能把图片下载下来