@bogoclesJul 08.2008 — #This is trickier than simply making an XML login page.
You'll need another step. Remember, XML does not DO anything by itself. That other step will be transforming it into an XHTML page with a login form element on it.
Alternatively, you could write an ASP script that dynamically traverses the login XML (using the DOM parser) and creates new HTML elements and checks them for validity. This is probably a bit more difficult.
These sound like adding unnecessary steps, I know, so you'll need to rethink whether or not you really want to do this with XML. Unless you absolutely do, just do this with HTML instead.
You can also check out XForms it you'd like. Be aware, though, that support for them is generally lacking.
@kbdavis07authorJul 09.2008 — #I am sorry I did not provide the code I have so far and not being specfic on what I am looking for.
[COLOR="Yellow"]
I am using ASP 3.0 "Classic ASP" with VBScript and XML with MSxml 3.0 parser on my server that I am using.
[/COLOR]
I have 3 files.
1. Join.html <- User Picks a username and password and enter email address
2. ProcessUserSignUpForm.asp <-- Processes the Join.html page.
3. checkXML.xml <-- List of users names, ProcessUserSignUpForm.asp checks this xml file to see if the user already exists. If not then it will add the user info. but its not in the code yet.
[COLOR="DarkGreen"]
All I am looking for is the code the parser uses to search and compare the complete checkXML.xml file. I do not want the same Username or email address.[/COLOR]
Hope this helps explain what I am looking for.
Thanks,
Brian Davis ----------------------------------------------------------------
'On Error Resume Next Dim xmldoc, nodeList, node Set xmldoc = Server.CreateObject("Microsoft.XMLDOM") xmldoc.async = False
xmldoc.load(Server.MapPath("checkXML.xml"))
If xmldoc.parseError.ErrorCode=0 Then
Set nodeList = xmldoc.documentElement.getElementsByTagName("UserName") ^
|
[COLOR="Lime"] [<--Need to search the entire xml file this is the code that I need][/COLOR]
If nodeList.length>0 Then
If nodeList.Item(0).Text = usr Then
response.write ("User Name taken")
On Error Resume Next Session("UserRole") = nodeList.Item(0).attributes.getNamedItem("role").nodeValue If Err.Number<>0 Then Session("UserRole") = "GUEST" End If End If End If End If