Hi, I can't access the following XML structure - it never goes into the if statement. The Web.Config I am accessing is well formed and this is the structure.
Ideas why?
Thanks,
James
Ideas why?
Code:
Dim doc As XmlDocument = New XmlDocument()
doc.Load("C:\Documents and Settings\Code2\ProjectManagement\Web.config")
Dim node As XmlNode = doc.SelectSingleNode("/configuration/system.web/authorization/allow")
If TypeOf node Is XmlElement Then
Dim add As XmlElement = CType(node, XmlElement)
add.SetAttribute("value", "Your Value")
End If
Thanks,
James