Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Simple XML example with some musicians, albums, and songs
<artist name="Radiohead">
<album title="The King of Limbs">
<song title="Bloom" length="5:15"/>
<song title="Morning Mr Magpie" length="4:41"/>
<song title="Little by Little" length="4:27"/>
<song title="Feral" length="3:13"/>
<song title="Lotus Flower" length="5:01"/>
<song title="Codex" length="4:47"/>
<song title="Give Up the Ghost" length="4:50"/>
<song title="Separator" length="5:20"/>
<description link="">
The King of Limbs is the eighth studio album by English rock band Radiohead, produced by Nigel Godrich. It was self-released on 18 February 2011 as a download in MP3 and WAV formats, followed by physical CD and 12" vinyl releases on 28 March, a wider digital release via AWAL, and a special "newspaper" edition on 9 May 2011. The physical editions were released through the band's Ticker Tape imprint on XL in the United Kingdom, TBD in the United States, and Hostess Entertainment in Japan.
<album title="OK Computer">
<song title="Airbag" length="4:44"/>
<song title="Paranoid Android" length="6:23"/>
<song title="Subterranean Homesick Alien" length="4:27"/>
<song title="Exit Music (For a Film)" length="4:24"/>
<song title="Let Down" length="4:59"/>
<song title="Karma Police" length="4:21"/>
<song title="Fitter Happier" length="1:57"/>
<song title="Electioneering" length="3:50"/>
<song title="Climbing Up the Walls" length="4:45"/>
<song title="No Surprises" length="3:48"/>
<song title="Lucky" length="4:19"/>
<song title="The Tourist" length="5:24"/>
<description link="">
OK Computer is the third studio album by the English alternative rock band Radiohead, released on 16 June 1997 on Parlophone in the United Kingdom and 1 July 1997 by Capitol Records in the United States. It marks a deliberate attempt by the band to move away from the introspective guitar-oriented sound of their previous album The Bends. Its layered sound and wide range of influences set it apart from many of the Britpop and alternative rock bands popular at the time and laid the groundwork for Radiohead's later, more experimental work.
<artist name="Portishead">
<album title="Dummy">
<song title="Mysterons" length="5:02"/>
<song title="Sour Times" length="4:11"/>
<song title="Strangers" length="3:55"/>
<song title="It Could Be Sweet" length="4:16"/>
<song title="Wandering Star" length="4:51"/>
<song title="It's a Fire" length="3:49"/>
<song title="Numb" length="3:54"/>
<song title="Roads" length="5:02"/>
<song title="Pedestal" length="3:39"/>
<song title="Biscuit" length="5:01"/>
<song title="Glory Box" length="5:06"/>
<description link="">
Dummy is the debut album of the Bristol-based group Portishead. Released in August 22, 1994 on Go! Discs, the album earned critical acclaim, winning the 1995 Mercury Music Prize. It is often credited with popularizing the trip-hop genre and is frequently cited in lists of the best albums of the 1990s. Although it achieved modest chart success overseas, it peaked at #2 on the UK Album Chart and saw two of its three singles reach #13. The album was certified gold in 1997 and has sold two million copies in Europe. As of September 2011, the album was certified double-platinum in the United Kingdom and has sold as of September 2011 825,000 copies.
<album title="Third">
<song title="Silence" length="4:58"/>
<song title="Hunter" length="3:57"/>
<song title="Nylon Smile" length="3:16"/>
<song title="The Rip" length="4:29"/>
<song title="Plastic" length="3:27"/>
<song title="We Carry On" length="6:27"/>
<song title="Deep Water" length="1:31"/>
<song title="Machine Gun" length="4:43"/>
<song title="Small" length="6:45"/>
<song title="Magic Doors" length="3:32"/>
<song title="Threads" length="5:45"/>
<description link="">
Third is the third studio album by English musical group Portishead, released on 27 April 2008, on Island Records in the United Kingdom, two days after on Mercury Records in the United States, and on 30 April 2008 on Universal Music Japan in Japan. It is their first release in 10 years, and their first studio album in eleven years. Third entered the UK Album Chart at #2, and became the band's first-ever American Top 10 album on the Billboard 200, reaching #7 in its entry week.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment