Web Creation

3:17:00 PM |


<playlist>
<song>
<title>Where the Streets Have No Name</title>
<artist>U2</artist>
<album>The Joshua Tree</album>
<released>1987</released>
</song>
<song>
<title>Hungry Like the Wolf</title>
<artist>Duran Duran</artist>
<album>Rio</album>
<released>1982</released>
</song>
<song>
<title>More Than a Feeling</title>
<artist>Boston</artist>
<album>Boston</album>
<released>1986</released>
</song>
<song>
<title>Dream On</title>
<artist>Aerosmith</artist>
<album>Aerosmith</album>
<released>1973</released>
</song>
</playlist>
Finally, you have a complete playlist of four songs that’s been properly marked up in XML. Using just the very basic building block of XML, elements, you can create arbitrarily complex documents that encode information about whatever topic you like in a hierarchical fashion.
This hierarchical structure is known as a tree. However, if all you had to work with were elements,
your tree would grow very big very quickly, and it could quickly become unwieldy. So in addition to elements,  there are two more very important parts of the XML markup language
that allow you to add extra information about your data: attributes and values.

0 comments: