I want to know if there is possible to get XML tags from another server in order to incorporate in my website that does not use XSL. it is possible to get XML values through ASP and change it later with my own style sheet?
I'm having the same problem. I have an XML document on another server, that I want my website to be able to get values from. How can I do this through ASP and not XSL? I only have read access to the XML document, so hopefully this answer doesn't involve editing the XML document directly. Thank you.
You have to use the XMLHTTP property to get the raw data from the XML file that is located on an external server. Then, the Call xmlhttp.send brings back the information that you can then parse and look for information. This example found an external XML file and printed one value from it.
<%
Dim xmlhttp
'create object to retrieve XML via HTTP
Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP"
xmlhttp.Open "GET", "
Set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.loadxml(xmlhttp.responseText)
dim price
'find the node that we want and put it's value in a variable
price = xml.getElementsByTagName("Symbol/@Last".item(0).text
response.Write("Company's current price is: " & price)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.