I need to get elements from inside a list, i catch up an update from a single wordpress page in my post.php file trough $post->post_content
The output from it is:
Sportpaleis Antwerpen 25/02/2012 Sioen De Zwerver leffinge 24/03/2012 Nathan The zydeco Cha-Chas n9 Eeklo 24/03/2012 Kraantje Pappie Nijdrop Opwijk 24/03/2012 Eigen Makelij Hof Ter Loo Antwerpen 26/03/2012 test testPura vida Sportpaleis Antwerpen 25/02/2012 Sioen De Zwerver leffinge 24/03/2012 Nathan The zydeco Cha-Chas n9 Eeklo 24/03/2012 Kraantje Pappie Nijdrop Opwijk 24/03/2012 Eigen Makelij Hof Ter Loo Antwerpen 26/03/2012
I need to find a way to get every piece of text seperatly in this list. Can i do this by putting them between div ids? and how would i adress these divs? The point is that i need to export this content to an xml. I can put contents in an xml but the problem is getting this html text into seperate variables so i can put em between those tags example: HTML
<p id="artist">Sioen</p>
<p id="location">De Zwerver leffinge</p>
<p id="date>24/03/2012</p>
Should become: (xml)
<concerts>
<concert>
<artist>Sioen</artist>
<location>De zwerver leffinge</location>
<date>24/03/2012</date>
</concert>
.....
</concerts>
Since the comments suggest that i should put some kind of structure in i used a var_dump on the values with the <p id=""> </p>
and the output is
Sioen De Zwerver leffinge 24/03/2012 ...