treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Generate HTML from XML?

  • I have a client that does regular trade shows. Is there a way to create a .xml file with dates to all those trade shows and have the next upcoming show based on the date update the html page?

    I'm guessing this is far more complicated than I was hoping but I figured I would pose the question here because these forums have been so helpful in the past.

    If there is a better way that is pretty much hands-off for a client I'm all ears!
  • Are you talking about XSLT? It's used for generating an HTML Document from an XML document

    http://www.w3schools.com/xsl/
  • Yeah, XSLT was the first thing that entered my mind, however javascript would work well also, as long as it's enabled. It would need a parser however... good thing there's a lot of them
  • I have never dealt with .xslt I'll have to do some research on that one.
    Looks somewhat clumsy but I guess as long as it does what I need everyone is happy! Thanks for the prompt responses.