extract xml using asp
i have a thing on my site where the user can receive a password reminder if thye have forgot theyre password
i was wondering how i would do that
i have this so far
<%
Dim xmlDocument, path, nodes
set xmlDocument = CreateObject("MSXML2.FreeThreadedDOMDocument")
xmlDocument.async = "false"
xmlDocument.load(Server.MapPath("/speirsy/db/user.xml"))
xmlDocument.setProperty "SelectionLanguage", "XPath"
path = "/records/details[username='" & Request.Form("userQuery") & "']"
set nodes = xmlDocument.selectNodes(path)
If nodes.length = 0 Then
Response.write("Please enter a valid username")
End If
For Each Node In nodes
For Each Node2 In Node.childNodes
If Node2.nodeName = "username" Then
If Node2.text = Request.Form("UserQuery") Then
Response.Write("extratc from xml file")
else
Response.Write(" please enter a valid password")
End If
End If
Next
Next
what code would i put to replace the 'extract from xml file' part
thanks
|