关于asp读取xml的问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 19:47:51
<?xml version="1.0" encoding="gb2312" ?>
<movie_list num="16">

<movie id="1980" length="1" main_type="电影" sub_type="喜剧" change="update" last_time="2007-12-11 16:15:44">

<name><![CDATA[谁和她睡觉了]]></name>
<actor><![CDATA[李赫宰|朴俊奎|金莎朗|何硕振|河东勋]]></actor>
<director><![CDATA[金佑成]]></director>

<file_list num="3">

<file id="87" length="33" order="1" >
<name><![CDATA[第01集]]></name>
<params><![CDATA[mid=1980&sid=87]]></params>
</file>

<file id="88" length="33" order="1" >
<name><![CDATA[第02集]]></name>
<params><![CDATA[mid=1980&sid=88]]></pa

帮你找了个答案 你去看看
http://homepage.yesky.com/369/3074869.shtml

这是我研究RSS时研究出来的,就是把XML文件代码全用response.write输出 就可以了
<script language="vbscript">
<%
response.Write("<?xml version='1.0' encoding='gb2312' ?> "
response.Write("<movie_list num='16'> "

response.Write("<movie id='1980' length='1' main_type='电影' sub_type='喜剧' change='update' last_time='2007-12-11 16:15:44'> "

response.Write("<name><![CDATA[谁和她睡觉了]]></name> "
response.Write("<actor><![CDATA[李赫宰|朴俊奎|金莎朗|何硕振|河东勋]]></actor> "
response.Write("<director><![CDATA[金佑成]]></director> "

response.Write("<file_list num='3'> "