package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var novel:XML =
ActionScript
J, J
Books Ltd
;
for each (var child:XML in novel..*) {
if (child.nodeKind( ) == "element") {
child.setName(child.name().toString().toLowerCase( ));
for each (var attribute:XML in child.@*) {
attribute.setName(attribute.name().toString().toLowerCase( ));
}
}
}
}
}
}