chingachgoog
01.08.2007, 14:00
Например, нельзя напрямую посмотреть число атрибутов у xml узла:
trace(мойXML.childNodes[0].attributes.length) // выводит undefined
Только опосредовано:
t=0
for (i in мойXML.childNodes[0].attributes){
trace ("i "+i+" "+xmlData.childNodes[0].attributes[i])
t++
}
trace(t)
Или все же можно?
trace(мойXML.childNodes[0].attributes.length) // выводит undefined
Только опосредовано:
t=0
for (i in мойXML.childNodes[0].attributes){
trace ("i "+i+" "+xmlData.childNodes[0].attributes[i])
t++
}
trace(t)
Или все же можно?