Custom Section Handler XML parsing

H

Hazzard

I am trying to create a custom section and section handler in my config
file.

The custom section should be something like;
<appSecurity>
<method name = "Protect the Ice Cream">
<allow group = "admin"/>
<allow group = "ice cream eaters"/>
<deny group= "weightwatchers"/>
<deny user = "hazz"/>
</method>
</appSecurity>

How would I parse this xml in my
Implements IConfigurationSectionHandler where a simple Section Handler looks
like the following;

Dim data As New NameValueCollection()

Dim root As XmlElement = CType(section, XmlElement)

Dim node As XmlNode

For Each node In root.ChildNodes

data.Add(node.Name, node.InnerText)

Next

*************



Thank you,

-greg
 

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
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top