Jump to content

xml to xhtml


phoebe1023

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...