 			if(_nodeKind == "text" || _nodeKind == "comment" || _nodeKind == "processing-instruction")
 				return;
 			var ns2:Namespace = new Namespace(ns);
-			_name = new QName(ns2,_name);
+			_name = new QName(ns2,name());
 
 			if(_nodeKind == "attribute")
 			{

		 */
		public function normalize():XML
		{
			var len:int = this._children.length-1;
			var lastChild:XML;
			for(var i:int=len;i>=0;i--)
			{
				var child:XML = this.child(i)[0];
				// can we have a null child?

				if(child.nodeKind() == "element")

				}
				else
				{
					qname = new QName(name());
					if(!qname.uri && defaultNamespace)
					{
						qname = new QName(defaultNamespace);
