package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var product:XML = <someCorp:PRODUCT
xmlns:someCorp="http://www.example.com/someCorp">
<someCorp:PRICE>99.99</someCorp:PRICE>
</someCorp:PRODUCT>;
var ns1:Namespace = product.namespace("someCorp");
var ns2:Namespace = new Namespace("sc", "http://www.example.com/someCorp");
trace(ns1 == ns2); // Displays: true
}
}
}
|