Import [[Module]] affects unity web player file size?

Importing mono modules adds to the build size of the web player?

For example, I needed to parse XML in my unity app. This 10 liner script results in a 600k web player size.

import System.Xml;

function Start()
{
var doc = new XmlDocument();
doc.LoadXml("test.xml");
}

The build log shows Unity adding the System.Xml.dll asset. Was hoping that System.Xml type modules would be part of the Web Player client install or preinstalled .NET/mono framework on the client. But it ain’t working that way it seems.

Any suggestions? Thinking of using a javascript based XML parser in my case (mini-dom or something).

In general, should we avoid importing Mono modules in our scripts?

Just started using Unity. Awesome app!

Yes, System.XML is not included in the standard web player installation. So if you use it in your game, it gets included into the data file.

Thanks for the quick reply!

Anybody know of a good Mono class/library list that covers the dll’s included in the Unity Web Player? Would be immensely useful.