data request and display
i'm new to xml, i only know the basics of it. been using it for 2 weeks now.
my current project requires me to access our affiliates data system using xml and display the gathered information on our site.
our affiliate gave us a request structure,
see below for example
request structure: <catalogID> depends on a user input.
response stucture is:
how will i display the gathered informations? and how will i declare the "request structure" in our site?
I don't think you'll be able to do this using a browser(cross domainsecurity issue).
You may want to try a stand alone aplication on the server side written php/java(jsp or servlet) and then load the results in a rowser window
using the HTTPRequest object...u can post an XML file...to your client...and read the XML is response...
Load the incoming XML in an XMLDOM object...use XSL to make it look "pretty"....and siplay it...there simple isnt it?? hehe....
heres some sample code that does exatly what u want........
SerHttp = new ActiveXObject("Msxml2.XMLHTTP");
SerXML = new ActiveXObject("Microsoft.XMLDOM");
FileData = SerXML.transformNode(XslXML);
heres what the code does....Sends "InputXML" to "ServiceRequest"...gets the response....loads into XMLDOM...transforms it against an XSL "XslXML"
Users Browsing this Thread
There are currently 1 users browsing this thread.
(0 members and 1 guests)