The .xap file is used for transferring and containing the assemblies and resources of an application with managed code. This code must be written within the Silverlight browser plugin.
Once the .xap file is created, the Silverlight 2 plug-in will download the file and executes in a separate work space