protected void LoadUseField(XmlScanner scanner) { Dictionary<string, string> properties; properties = new Dictionary<string, string>(); foreach (XmlScanner child in scanner.Read()) { if (!child.IsElement) continue; switch (child.Name) { case "Property": properties[child.GetAttributeAsString("name")] = child.Text(); break; default: throw scanner.CreateXmlException( "unexpected element <{0}/> in <Field/>", child.Name); } } this.Set( scanner.GetAttributeAsString("name"), scanner.Parent.GetAttributeAsString("name"), properties); }
protected Appender ReadAppenderPipelineFinal(XmlScanner scanner) { Dictionary<string, string> properties; properties = new Dictionary<string, string>(); foreach (XmlScanner child in scanner.Read()) { if (!child.IsElement) continue; if (child.Name != "Property") throw scanner.CreateXmlException( "unexpected element <{0}/> in <Final/>", child.Name); properties[child.GetAttributeAsString("name")] = child.Text(); } return this.CreateAppenderPipelineFinal( scanner.GetAttributeAsString("name"), properties); }