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
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