this is driving me nuts, why can't i get the strUsername value?
thanks
thanks
Code:
Set xmldoc = Server.CreateObject("Microsoft.XMLDOM")
xmldoc.async = False
xmldoc.load (Server.MapPath("onRes2.xml"))
If (xmldoc.parseError.errorCode <> 0) Then
Response.Write "XML " & strType & " error - " & "<br>" & _
"Error Reason: " & xmldoc.parseError.reason & "<br>" & _
"Source: " & xmldoc.parseError.srcText & "<br>" & _
"Error Line: " & xmldoc.parseError.line & "<br>" & _
"Error Position: " & xmldoc.parseError.linepos & "<br>"
Response.End
Else
strUsername = xmldoc.SelectSingleNode("/prop/code/user/@username").Value
response.write strUsername