<html> <body> <script type="text/vbscript"> set xmlDoc=CreateObject("Microsoft.XMLDOM") xmlDoc.async="false" xmlDoc.load("../xpath/books.xml") set nodes=xmlDoc.selectNodes("/bookstore/book[0]") for each x in nodes document.write("<xmp>") document.write(x.xml) document.write("</xmp>") next </script> </body> </html>
编辑上面的文字,按下“查看结果”,效果会显示在右边 Create by 软晨网(RuanChen.com)