string GetNotNull (SmallXmlParser.IAttrList attrs, string name) { string value = attrs.GetValue (name); if (value == null || value == "") throw new RemotingException (name + " attribute is required"); return value; }