package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var example:XML =
;
var attributes:XMLList = example.fruit.@*;
for ( var i:int = attributes.length( ) - 1; i >= 0; i-- ) {
delete attributes[i];
}
trace( example );
}
}
}