I am using the following function to receive XML data from a URL.
Is there a more efficient method for retrieving this XML data?
Public Function UserLocation() As String
Try
Dim XML As Object = Server.CreateObject("MSXML2.DOMDocument.6.0")
Dim getXML As String = "<URL>"
XML.async = "false"
XML.resolveExternals = "false"
XML.setProperty("ServerHTTPRequest", True)
XML.Load(getXML)
Return XML.documentElement.SelectSingleNode("name").Text
Catch e As Exception
Return False
End Try
End Function