Creating Namespace-Qualified Elements and Attributes
package{ import flash.display.Sprite;
public class Main extends Sprite{ public function Main(){
var htmlNS:Namespace = new Namespace("html","http://www.w3.org/1999/xhtml"); var shopNS:Namespace = new Namespace("shop","http://www.example.com/furniture"); // Set the default namespace default xml namespace = htmlNS; // Create the root element var catalog:XML = <html/>;