Custom Section Handler for array of complex objects

T

towerjj

hi all,

I need a configuration file mapped to a class in my web app. It is an
array of a class, in XML something like this:


<ArrayOfRole>
<Role>
<name>r1</name>
<sections>
<string>bb</string>
</sections>
</Role>

<Role>
<name>r1</name>
<sections>
<string>bb</string>
<string>cc</string>
<string>xx</string>
</sections>
</Role>

</ArrayOfRole>


In a winform context I would use
System.Xml.Serialization.XmlSerializer whereas In web app context I
should use configuraction section of web.config file.

I'm really blocked in implementing the appropriate Custom Section
Handler.

Is there a better solution to my problem?
If no, does anyone have an sample?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top