tomastsc
tomastsc

Reputation: 47

How to convert this XML into HTML?

I have this XML file:

<?xml version="1.0" encoding="UTF-8"?>
<Diary>
<Event EventName="J.Edgar" Classification="2011 Movies" EventStart="2012-03-19T07:00:00+00:00" EventEnd="2012-03-19T08:00:00+00:00" />
<Event EventName="Titanic" Classification="1997 Movies" EventStart="2012-03-19T09:00:00+00:00" EventEnd="2012-03-19T10:00:00+00:00" />
....
</Diary>

How can I create an automatic table (with HTML and CSS)? these details of EventName, etc.. are automatic and I need something Dynamic for it.

I tried using W3 tutorials but didn't manage to get anything out of it. This XML file looks different than regular ones as well.

Please let me know if you have an idea. Many thanks!

Upvotes: 0

Views: 640

Answers (1)

Michael Bartel
Michael Bartel

Reputation: 191

You can use StyleSheets http://www.w3.org/Style/XSL/WhatIsXSL.html. There should be utilities in each programming language to transform XML with XSL.

Upvotes: 2

Related Questions