void ReadPreload (SmallXmlParser.IAttrList attrs)
{
string type = attrs.GetValue ("type");
string assm = attrs.GetValue ("assembly");
if (type != null && assm != null)
throw new RemotingException ("Type and assembly attributes cannot be specified together");
if (type != null)
SoapServices.PreLoad (Type.GetType (type));
else if (assm != null)
SoapServices.PreLoad (Assembly.Load (assm));
else
throw new RemotingException ("Either type or assembly attributes must be specified");
}