I have this (rather ugly) solution:
var i:uint = 0;
while(i < xml.dog.length()){
if(xml.dog[i].attribute("id") != "2"){
delete xml.dog[i];
} else {
++i;
}
}
My preferred way would be though, is doing it vise versa, i.e. add the
qualifying nodes instead of deleting not quali
Sorry list! I didn't properly title that post! :-(
- MM
Hi list...
I want loop through to delete certain nodes, but can't figure out how to do it.
I've tried a conventional loop, for...in and for...each...in, and I must be
missing something.
2 matches
Mail list logo