phoebe1023 Posted October 17, 2006 Share Posted October 17, 2006 I need to transform a xml file name flightSchedule.xml into xhtml.below are the codes that i get from w3schools.org but i m not sure wat should i do to the codes.any1 please explain it to me?and if i save the coding, what files extension should i put? Transforming XML to XHTML in the BrowserHere is the source code needed to transform the XML file to XHTML on the client:<html><body><script type="text/javascript">// Load XML var xml = new ActiveXObject("Microsoft.XMLDOM")xml.async = falsexml.load("cdcatalog.xml")// Load XSLvar xsl = new ActiveXObject("Microsoft.XMLDOM")xsl.async = falsexsl.load("cdcatalog.xsl")// Transformdocument.write(xml.transformNode(xsl))</script></body></html> Link to comment Share on other sites More sharing options...
boen_robot Posted October 17, 2006 Share Posted October 17, 2006 Here's a cross browser JavaScript to do what you want. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now