Mega Code Archive
Create a reference to the default Namespace using the Namespace constructor
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var catalog:XML =
Catalog
var shopNS:Namespace = catalog.namespace("shop");
//default xml namespace = shopNS;
for each (var table:XML in catalog..table) {
trace(table..desc + ": " + table..price);
}
}
}
}