以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  编码实现:找到XML文档中所有最末级的节点数据  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=259)


--  作者:ktgis
--  发布时间:12/2/2003 12:58:00 PM

--  编码实现:找到XML文档中所有最末级的节点数据
编码实现:找到XML文档中所有最末级的节点数据?
--  作者:阳光不老
--  发布时间:10/18/2004 7:46:00 PM

--  
dim chl
dim x
set =isle
if mdoc.parseeror<>0 then
  msbox "reason" & mdoc.parseerror.reason
else{
set chl=mdoc,documentelement.childnodes
  if chl.haschildnodes=false then
     for each x in chl
         document.write("<b>" & x.nodename &"<b>")
         document.write(":")
         document.write(x.text)
         document.write("<br>")
     next
end if

W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms