XML檔案原始碼察看器(四) (轉)

發表於2007-11-12
XML檔案原始碼察看器(四) (轉)[@more@]

//給指令節點著色:namespace prefix = o ns = "urn:schemas--com::office" />


function renderInstruction(nodNode,intLevel)


{


 var strNodes = '';


 var intCount = 0;


 var intNode = 0;


 var nodAttrList;


 strNodes+=getIndent(intLevel)+"<";




 strNodes+="?"


 strNodes+=nodNode.nodeName+" ";


 // check there are some attributes


 strNodes+=nodNode.nodeValue;


 strNodes+="?>
";


 return strNodes;


}




function getIndent(intLevel)


{


 // create a string of spaces


 var strIndent = '';


 for (intIndent = 0; intIndent < intLevel; intIndent++)


 strIndent += '          '


 return strIndent;


}






BITI XML UNION -


stan


相關文章