ciao a tutti!
ho un problemino, non riesco a decifrare questa compilazione qualcuno mi può aiutare?
function parseMessages(node) {
if (node.nodeName == "MESSAGE") {
incoming += "Message name: " + node.attributes.NAME + "\n";
Dati();
// loop over the arguments of the message
for (var child = node.firstChild; child != null; child=child.nextSibling) {
if (child.nodeName == "ARGUMENT") {
incoming += "\tArg type " + child.attributes.TYPE;
incoming += ", value " + child.attributes.VALUE + "\n"
trace("Message name: " +node.attributes.NAME);
trace("Arg type " +child.attributes.TYPE+ ", value " +child.attributes.VALUE);
}
}
}
else { // look recursively for a message node
for (var child = node.firstChild; child != null; child=child.nextSibling) {
parseMessages(child);
}
}
}
grazie!