hi all , its been a while , im having troubles with XML once again , one of you could probably solve it for me .
im coding a function that involves XML within , am basically trying to develop an XML based music album for a friend of mine but i have never experienced such XML structure before .
the elements would be Album title , songs under the albums & the lyrics associated with every song , so it would basically be like this :
<?xml version="1.0"?>
<xml>
<album title="album1">
<song><![CDATA[song 1]]></song>
<lyrics><![CDATA[song 1 lyrics]]></lyrics>
<song><![CDATA[song 2]]></song>
<lyrics><![CDATA[song 2 Lyrics]]></lyrics>
</album>
<album title="album2">
<song><![CDATA[song 1]]></song>
<lyrics><![CDATA[song 1 lyrics]]></lyrics>
<song><![CDATA[song 2]]></song>
<lyrics><![CDATA[song 2 lyrics]]></lyrics>
</album>
</xml>
- <?xml version="1.0"?>
- <xml>
- <album title="album1">
- <song><![CDATA[song 1]]></song>
- <lyrics><![CDATA[song 1 lyrics]]></lyrics>
- <song><![CDATA[song 2]]></song>
- <lyrics><![CDATA[song 2 Lyrics]]></lyrics>
- </album>
-
-
- <album title="album2">
- <song><![CDATA[song 1]]></song>
- <lyrics><![CDATA[song 1 lyrics]]></lyrics>
- <song><![CDATA[song 2]]></song>
- <lyrics><![CDATA[song 2 lyrics]]></lyrics>
- </album>
-
- </xml>
and so on , now how would i be able to grab the album title , songs under it and the lyrics associated with it ? i would appreciate a code snippet or a lead to it anything that helps peeps .
m0o , where <<Less is More>>
http://www.zainals.com
http://www.zainals.com/blog