e4x

I’m trying to work with xml but all the examples i see just don’t seem to really cover the(basic) problem i have.

package Test{
	
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	import flash.net.URLLoader;
	
	import flash.xml.*;
	
	import flash.events.Event;
	
	import CMS.CMS;
	
	public class XMLTest{
		
		public function XMLTest(url:String){
			
			var request:URLRequest = new URLRequest(url);
			var loader:URLLoader = new URLLoader();
			
			request.method = URLRequestMethod.POST;
			loader.addEventListener(Event.COMPLETE, processMeta);
			
			try{
				
				loader.load(request);
				
			}
			
			catch(exception:Error){
				
				trace(exception);
				
			}
			
			
		}
		
		public function processMeta(event:Event):void{
			
			var loader:URLLoader = URLLoader(event.target);
			
			try{
				
				var XML:XML = XML(loader.data);
				
			}
			
			catch(exception:Error){
				
				trace(exception);
				
			}
			
		}
		
	}
	
}

The error i get is:

1046: Type was not found or was not a compile-time constant: XML.