c# - Can ConfigurationElementCollection object contain for its elements another ConfigurationElementCollection objects? -
What configuration element can the Klang object be for another element of its ElementCollection object?
I have this XML where the test section is root:
& Lt; / MetaGroup & gt; & Lt; Metagram ID = "Default" & gt; & Lt; Meta name = "some" content = "test" type = "name" /> & Lt; / MetaGroup & gt; & Lt; / Metadata & gt; & Lt; / Head & gt; & Lt; / Testsection & gt; Is it possible to create classes with configuration sections, configuration elements, and configuration element configurable that can be read over XML? The problem is that when we implement the configuration element collection, we can not define it
& lt; Checkection & gt; If this is a configuration section, then I can do it for work. & Lt; Top & gt; & Lt; Metadata & gt; & Lt; Meta name = "content-type" content = "text / html; charset = UTF-8" type = "http-equiv" /> & Lt; Meta name = "some" content = "test" type = "name" /> & Lt; / Metadata & gt; & Lt; / Head & gt; & Lt; / Testsection & gt; I think that only configuration element objects can have configuration element collection objects (configuration alignment should be for your parents.)
ConfigurationElement). So I think the MetaSample configuration will be if I add a new ConfigurationAlmentCollection (MetaGroup Collection) as the origin of the Meta Configuration Element, I can solve this problem.
& lt; Checkection & gt; & Lt; Top & gt; & Lt; Metadata & gt; & Lt; Metagram ID = "normal" & gt; & Lt; MetaGroupCollection & gt; & Lt; Meta name = "content-type" content = "text / html; charset = UTF-8" type = "http-equiv" /> & Lt; / MetaGroupCollection & gt; & Lt; / MetaGroup & gt; & Lt; Metagram ID = "Default" & gt; & Lt; MetaGroupCollection & gt; & Lt; Meta name = "some" content = "test" type = "name" /> & Lt; / MetaGroupCollection & gt; & Lt; / MetaGroup & gt; & Lt; / Metadata & gt; & Lt; / Head & gt; & Lt; / Testsection & gt;
Comments
Post a Comment