
17.04.2004, 23:51
|
|
блогер
Регистрация: Mar 2003
Адрес: Моск. обл.
Сообщений: 5,269
|
xmlElt = new XML("<menu><m name='111'href='http://111.ru/'w='11'/><m name='222'href='http://222.com/'w='22'/><m name='333'href='http://333.net/'w='33'/></menu>");
var nod=xmlElt.firstChild.firstChild;
a=[];
b=[];
c=[];
i=0;
while(nod){
a[i]=nod.attributes.name;
b[i]=nod.attributes.href;
c[i]=nod.attributes.w;
nod=nod.nextSibling;
i++;
}
Последний раз редактировалось silin; 17.04.2004 в 23:52.
|