Hi,
Can someone please explain to me what the statement in red does? Why the object ReadXML has the same name as funciton name? Thanks in advance.
Can someone please explain to me what the statement in red does? Why the object ReadXML has the same name as funciton name? Thanks in advance.
Code:
function ReadXML (url)
dim xmldoc
Set xmldoc = Server.CreateObject("MSXML2.DOMDocument")
xmldoc.async = False
xmldoc.setProperty "ServerHTTPRequest", true
xmldoc.load (url)
[COLOR=#A40000]set ReadXML = xmldoc[/color]
end function