Not sure if this is the appropriate place to ask this.

I have a blog using wordpress. i have customized it quite a lot and continue to do so. I am currently using the function wp_get_archives to get the number of posts created in each month. However i want to format these results on my blog in another way rather than just a list etc.

currently the output is:
<li><a href='url' title='May 2008'>May 2008</a>&nbsp;(3)</li>

I would like to be able to parse this output and then print it in a different format. I am having a tough time knowing how to parse the output.

Any info would be great, preferably using php.