public static function getTrackData(data:*, index:int=0):XML { var xspf:Namespace = new Namespace(xspfUri); default xml namespace = xspf; var playlist:XML = new XML(data);
var length:int = playlist.trackList.length();
var title:String = String(playlist.trackList.track[index].title);
var location:String = String(playlist.trackList.track[index].location);
var returnXml:XML =
<trackData xmlns="">
<total>{length}</total>
<title>{title}</title>
<location>{location}</location>
</trackData>
return returnXml;
}
/*
By setting xmlns to a zero-length string, E4X will omit the xmlns attribute.
*/