/Files/annya/从xml读取数据实例.rar<SCRIPT language="Javascript">
function initialize()
{var XMLdoc=scorelist;
XMLroot=XMLdoc.documentElement;
}
function find1()
{
initialize();
L2_Node=XMLroot.firstChild;
towrite();
}
function find2()
{
initialize();
L2_Nodegroup=XMLroot.childNodes;
if(name1.value!="")
{
for(var i=0;i<(L2_Nodegroup.length-1);i++)
{
L2_Node=L2_Nodegroup.item(i);
L3_Node0=L2_Node.firstChild;
if(L3_Node0.text==name1.value)
{
L2_Node=L2_Nodegroup.item(i+1);
towrite();
break;
}
}
}
else
{
find1();
}
}
</SCRIPT>