ASP如何在XML写查询语句~~高手帮看下 ~~有积分
<?xml version="1.0" encoding="utf-8"?>
<thumbnails>
<thumbnail filename="euro2008_004.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_005.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_006.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_007.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_008.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_009.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_010.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_011.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_012.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
<thumbnail filename="euro2008_017.jpg" url="http://www.lanrentuku.com/" target="_blank" title="Item No. LANRENTUKU" description="懒人图库" />
</thumbnails>
就循环<thumbnails>这里的东西就可以了~
我想做一个网站 用到了XML 但是不会在这里写查询,数据库是ACCESS的~
首页切换图片的~
有高手帮写下~ 50积分 都奉献给你~ 谢谢谢谢了~
------解决方案--------------------Dim MyString = "<?xml version=\"1.0\" encoding=\"utf-8\"?><thumbnails>"
'循环你的查询结果集开始
MyString = MyString & "<thumbnail filename=\"euro2008_009.jpg\" url=\"http://www.lanrentuku.com/\" target=\"_blank\" title=\"Item No. LANRENTUKU\" description=\"懒人图库\" />"
'循环结束
'输出
Response.Write MyString & "</thumbnails>"