public object Create (object parent, object context, XmlNode section) { TraceConfig config = new TraceConfig (); string enabled_str = AttValue ("enabled", section); if (enabled_str != null) { try { config.Enabled = Boolean.Parse (enabled_str); } catch { ThrowException ("The 'enabled' attribute is case sensitive" + " and must be set to 'true' or 'false'.", section); } } string local_str = AttValue ("localOnly", section); if (local_str != null) { try { config.LocalOnly = Boolean.Parse (local_str); } catch { ThrowException ("The 'localOnly' attribute is case sensitive" + " and must be set to 'true' or 'false'.", section); } } string page_str = AttValue ("pageOutput", section); if (page_str != null) { try { config.PageOutput = Boolean.Parse (page_str); } catch { ThrowException ("The 'pageOutput' attribute is case sensitive" + " and must be set to 'true' or 'false'.", section); } } string limit_str = AttValue ("requestLimit", section); if (limit_str != null) { try { config.RequestLimit = Int32.Parse (limit_str); } catch { ThrowException ("The 'requestLimit' attribute must be an integer value.", section); } } string trace_str = AttValue ("traceMode", section); if (trace_str != null) { try { config.TraceMode = (TraceMode) Enum.Parse (typeof (TraceMode), trace_str); } catch { ThrowException ("The 'traceMode' attribute is case sensitive and must be" + " one of the following values: SortByTime, SortByCategory.", section); } } return config; }