private XmlnsDefinitionAttribute [] XmlnsDefsForAssembly (string xmlns, Assembly asm)
{
// TODO: We can cache these easily enough
XmlnsDefinitionAttribute [] defs = (XmlnsDefinitionAttribute []) asm.GetCustomAttributes (typeof (XmlnsDefinitionAttribute), false);
var res = from x in defs where x.XmlNamespace == xmlns select x;
return res.ToArray ();
}