I am trying to find a way to load an XML file into HTML in a table.?

I have looked at w3schools tutorials, and every other one I could find online. None seem to work. I tried copying and pasting the w3 schools tutorial html and xml (saved as seperate files in the same folder), and they don't work. I don't mind if I need to use javascript, or whatever. My html file contains tables as placeholders; the xml data should load and display in one of these cells . It can load into a table, or as data (without showing the xml tags). Someone please either point me to a decent tutorial on this, or let me know what code I can use. Most of the javascript tutorials I found don't explain where the codes need to be in order to work, and I haven't found a way through hours of experimenting. If I could even just get the source code for an html doc and an external xml file that actually displays, I can play around until it works for me. I am familiar with html, and with xml, but have never used xml in html. I am relatively unfamiliar with javascript. Thanks in advance...

Public Comments

  1. Use XSLT.
  2. there are so many ways to do it, some are easy others are hard! XSL is the classic language for transforming XML, it's a totally different language and will take some learning! I like Michael Kay's XSLT Programmer Reference. But it's very Javascript is barely equipped to do xml on it's own. Ajax helps things, and http://jquery.com library makes it quite easy! Of course any language could handle merging the xml files into the html. It really depends on the languages you already know! Perl has great support, php is ok, java is very good.
Powered by Yahoo! Answers