Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi all i am trying to get data f

Status
Not open for further replies.

sunila7

Technical User
Apr 11, 2001
1,087
US
Hi all

i am trying to get data from an XML File from an ASP page. this is the code i am using.

Dim XMLDoc
Dim xDoc
Dim attName
attname = "username"
Private Const USER_NODE_NAME = "Userid"
Private Const PASSWORD_NODE_NAME = "Password"
Set XMLDoc = server.CreateObject("Microsoft.XMLDOM")

XMLDoc.async = False
XMLDoc.loadXML("\login.xml")
Response.Write XMLDoc.documentElement.GetAttribute(attname)
Set XMLDoc = Nothing

i am getting this error
Microsoft VBScript runtime (0x800A01A8)
Object required: '[object]'
/xml.asp, line 18

Thanks for help in advance

Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top