Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML - HTML style sheet

Status
Not open for further replies.
Oct 30, 2003
10
GB
I've an XML file (an iTunes playlist) that I wish to put on the web. I am fairly confident with HTML and CSS (and general web coding) but until now I've never needed to use XML.

An extract from the XML file is...

<key>Name</key><string>My Favorite Things</string>
<key>Artist</key><string>OutKast</string>
<key>Composer</key><string>Andre Benjamin</string>
<key>Album</key><string>Speakerboxxx/The Love Below Disc 2</string>
<key>Genre</key><string>Rap &#38; Hip Hop</string>
<key>Total Time</key><integer>314073</integer>
<key>Year</key><integer>2003</integer>


So now for the CSS do I just define each element as having the name of each <key>?

Thanks,
Ed
 
use xml to structure your data:

<key>
<Name>My Favorite Things</Name>
<Artist>OutKast</Artist>
<Composer>Andre Benjamin</Composer>
<Album>Speakerboxxx/The Love Below Disc 2</Album>
<Genre>Rap &#38; Hip Hop</Genre>
<TotalTime>314073</TotalTime>
<Year>2003</Year>
</key>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top