Wrox Programmer Forums
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2003, 12:13 PM
Authorized User
 
Join Date: Nov 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract the XML file from CDATA haixia XSLT 2 August 3rd, 2006 02:01 PM
how to extract THIS node from XML in ASP?? zoreli XML 1 July 21st, 2006 09:51 AM
Extract data from the XML result of a web service s.hendy ASP.NET 1.0 and 1.1 Basics 0 March 16th, 2006 12:27 PM
Extract data and create xml for input dhol General .NET 1 February 2nd, 2005 03:01 PM
using pkzipc to extract from .tar file with ASP barvep Classic ASP Basics 0 August 18th, 2003 10:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.