Log in

View Full Version : How to convert this XML into HTML?



rosesmark
03-19-2012, 07:27 AM
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!