public override string LookupPrefix(string ns) { if (!supports_lookup) { return(String.Empty); } try { return(writer.LookupPrefix(ns)); } catch (NotSupportedException) { supports_lookup = false; return(String.Empty); } catch (Exception) { throw; } }