例9-6.html

来自「深入浅出XML示例下载」· HTML 代码 · 共 18 行

HTML
18
字号
<HTML>
<HEAD>
 <TITLE>获得节点信息 </TITLE>
</HEAD>
<BODY bgcolor=#ffffff>
<SCRIPT LANGUAGE="VBScript" >
Dim myDocument 
Set myDocument = CreateObject("microsoft.xmldom")
myDocument.async = False 
myDocument.load("BOOKS.XML")  
set root=mydocument.DocumentElement
Set firstNode = root.firstChild
document.write "the firstnode's name is === " & firstnode.nodename & "<br>"
document.write "the fistnode's value is ===  " & firstnode.text & "<br>"
 </SCRIPT>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?