首页 > 编程 > ASP > 正文

asp在服务器把 XML 转换为 XHTML的实现代码

2020-07-27 12:47:37
字体:
来源:转载
供稿:网友
复制代码 代码如下:

<%
'Load XML
set xml = Server.CreateObject("Microsoft.XMLDOM") xml.async = false xml.load(Server.MapPath("cdcatalog.xml"))
'Load XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM") xsl.async = false xsl.load(Server.MapPath("cdcatalog.xsl"))
'Transform file
Response.Write(xml.transformNode(xsl))
%>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表