I have an XML Doc that stores Query Parameters.
<?xml version="1.0" ?>
<?xml-stylesheet type='text/xml' href='test.xsl'?>
- <!-- sample xml file created using XML DOM object.
-->
- <Parameters created="using dom">
<UserID>Chris</UserID>
<PWD>Pass</PWD>
</Parameters>
and I have an ASP page that needs to read those parameters
<%
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.load("F:\SMS\ASP\Test.XML")
dim UserID
'find the node that we want and put it's value in a variable
UserID = xml.getElementsByTagName("//Parameters/UserID").item(0).text
response.Write("UserID: " & UserID)
Set xml = Nothing
%>
The line that gives me a problem is UserID = xml.getElementsByTagName...
Can any one help???
<?xml version="1.0" ?>
<?xml-stylesheet type='text/xml' href='test.xsl'?>
- <!-- sample xml file created using XML DOM object.
-->
- <Parameters created="using dom">
<UserID>Chris</UserID>
<PWD>Pass</PWD>
</Parameters>
and I have an ASP page that needs to read those parameters
<%
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.load("F:\SMS\ASP\Test.XML")
dim UserID
'find the node that we want and put it's value in a variable
UserID = xml.getElementsByTagName("//Parameters/UserID").item(0).text
response.Write("UserID: " & UserID)
Set xml = Nothing
%>
The line that gives me a problem is UserID = xml.getElementsByTagName...
Can any one help???