i have a playlist that i need to parse.
but i dont know how i could get the "title"(folder) and "tid"(id) so that i would have them in groups like this :
BillyJ 0,1,2,3,4,5,6...
Solo 60,61,62,63,64..
Best 105,106,107
here is the .xspf
- <?xml version="1.0" encoding="UTF-8"?>
- <playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
- <title>Playlist</title>
- <trackList>
- <track>
- <location>file:///E:/Downloads/video1.mp4</location>
- <duration>681493</duration>
- <extension application="http://www.videolan.org/vlc/playlist/0">
- <vlc:id>0</vlc:id>
- </extension>
- </track>
- <track>
- <location>file:///E:/Downloads/video2.mp4</location>
- <duration>614585</duration>
- <extension application="http://www.videolan.org/vlc/playlist/0">
- <vlc:id>1</vlc:id>
- </extension>
- </track>
- <track>
- <location>file:///E:/Downloads/video3.mp4</location>
- <duration>220629</duration>
- <extension application="http://www.videolan.org/vlc/playlist/0">
- <vlc:id>2</vlc:id>
- </extension>
- </track>
- </trackList>
- <extension application="http://www.videolan.org/vlc/playlist/0" xmlns="http://xspf.org/ns/0/">
- <vlc:node title="1111.xspf" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
- <vlc:node title="BillyJ">
- <vlc:item tid="0" />
- <vlc:item tid="1" />
- <vlc:item tid="2" />
- <vlc:item tid="3" />
- <vlc:item tid="4" />
- <vlc:item tid="5" />
- <vlc:item tid="6" />
- <vlc:item tid="7" />
- <vlc:item tid="8" />
- <vlc:item tid="9" />
- <vlc:item tid="10" />
- <vlc:item tid="57" />
- <vlc:item tid="58" />
- <vlc:item tid="59" />
- </vlc:node>
- <vlc:node title="Solo">
- <vlc:item tid="60" />
- <vlc:item tid="61" />
- <vlc:item tid="62" />
- <vlc:item tid="63" />
- <vlc:item tid="64" />
- <vlc:item tid="65" />
- <vlc:item tid="66" />
- <vlc:item tid="67" />
- <vlc:item tid="102" />
- <vlc:item tid="103" />
- <vlc:item tid="104" />
- </vlc:node>
- <vlc:node title="Best">
- <vlc:item tid="105" />
- <vlc:item tid="106" />
- <vlc:item tid="107" />
- <vlc:item tid="108" />
- <vlc:item tid="109" />
- <vlc:item tid="110" />
- <vlc:item tid="111" />
- </vlc:node>
- </vlc:node>
- </extension>
- </playlist>
But yeah like i said im stuck and dont know how i would do it . i can get all the titles and all the tids but they need to be grouped(nested) like in the playlist
Answers
Know the answer? Post it. Somebody with the same question will find it here.