Lico_w
asked on
Display XML in Web Page
I have picked up this project from someone else. We want to display the contents of an XML in a drop down list on a web page, however the lookup needs to be done server side.
The following code was taken from the global.asa file (sub Application_OnStart) and I want to output from this if poss:
The following code was taken from the global.asa file (sub Application_OnStart) and I want to output from this if poss:
set xmlHTTP = server.CreateObject("MSXML2.XMLHTTP")
xmlHTTP.open "GET","depots.xml",false
xmlHTTP.send
dim openXmlDepots
set openXmlDepots = server.CreateObject("MSXML2.FreeThreadedDomDocument.4.0")
openXmlDepots.async = false
openXmlDepots.loadXml(xmlHTTP.responsetext)
set application("XMLDepots") = openXmlDepots
Can you post the XML and which elements you want to use for the value/text?
ASKER
Attached xml
depots.xml
depots.xml
ASKER
Also I want it to display the name but have the depot code as the value if poss
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.