//给指令节点着色
function renderInstruction(nodNode,intLevel)
{
var strNodes = '';
var intCount = 0;
var intNode = 0;
var nodAttrList;
strNodes+=getIndent(intLevel)+"<font color=\"green\"><";
strNodes+="?"
strNodes+=nodNode.nodeName+" ";
// check there are some attributes
strNodes+=nodNode.nodeValue;
strNodes+="?></font><br>";
return strNodes;
}
function getIndent(intLevel)
{
// create a string of spaces
var strIndent = '';
for (intIndent = 0; intIndent < intLevel; intIndent++)
strIndent += ' '
return strIndent;
}
</SCRIPT>
<HR><SPAN CLASS="cite"> <A CLASS="cite" HREF="http://openlab.biti.edu.cn/xml/" target="_blank">BITI XML UNION</A> -
<A CLASS="cite" HREF="mailto:xiaoleilong@mail.biti.edu.cn">stan</A> </SPAN>
</BODY>
</HTML>
//===================================================