网站制作

本类阅读TOP10

·IIS 安装配置全攻略
·用VS.NET打开网上下载的.NET web项目出错的解决办法
·HTML 4.0 语言快速参考
·限制TextArea区的文字输入数量
·如何在网页上实现进度条
·Apache的配置步骤及测试
·谈谈Jesse James Garrett提到的Ajax
·html基础学习笔记(2)
·页面垂直居中的两种方法
·用asp遍历目录下文件的例子

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
XML文件源码察看器(七)

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

'给指令节点着色


function renderInstruction(nodNode,intLevel)


    dim strNodes,intCount,intNode


    strNodes = ""


    intCount = 0


    intNode = 0


    dim nodAttrList


    strNodes=strNodes & getIndent(intLevel)&"<font color=""green"">&lt"




    strNodes=strNodes & "?"


    strNodes=strNodes & nodNode.nodeName&" "


    ' check there are some attributes


    strNodes=strNodes & nodNode.nodeValue


    strNodes=strNodes & "?&gt</font><br>"


    renderInstruction = strNodes


end function




function getIndent(intLevel)


  ' create a string of spaces


  dim strIndent


  strIndent = ""


  for intIndent = 0 to intLevel-1


    strIndent = strIndent & "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"


  next


  getIndent = strIndent


end function
%>
<HTML>

<HEAD>

    <TITLE>XML 源码察看器 </TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFFF" style="font-family:Tahoma,Arial,sans-serif ;font-size:10pt;">

<SPAN style="font-family:Tahoma,Arial,sans-serif; font-size:14pt; font-weight:bold;"><%=strf%> </SPAN><br>

<HR>

<SPAN ID="txtData">

<%=strResult%>

</SPAN>

 

<HR><SPAN style="font-family:Tahoma,Arial,sans-serif ;font-size:8pt;"> <A style="font-family:Tahoma,Arial,sans-serif ;font-size:8pt;" HREF="http:'openlab.biti.edu.cn/xml/" target="_blank">BITI XML UNION</A> -

<A CLASS="cite" HREF="mailto:[email protected]">stan</A> </SPAN>

</BODY>

</HTML>


相关文章

相关软件