set xmlDoc=server.CreateObject("Microsoft.XMLDOM") set xmlappSettings=server.CreateObject("Microsoft.XMLDOM") set xmladd=server.CreateObject("Microsoft.XMLDOM") xmlDoc.async="false" xmlDoc.load(server.MapPath ("web.config")) set xmlappSettings = xmldoc.GetElementsByTagName("appSettings").Item(0) set xmladd = xmlappSettings.GetElementsByTagName("add") for each x in xmladd ‘Check for the Atrribute Value if x.getAttribute("key") ="RequiredKey" then sRequiredKey = x.getAttribute("value") end if next