For my templating engine, I want to build in a tag reader...not nessecarily XML, but if you understand where I am coming from better with XML, all the better.
I would like to take something like:
<author>Sean Shrum</author>
<created>03.03.10</created>
<foo>bar</foo>
And build a hash (associative array) of:
$tag_array['author'] = Sean Shrum
$tag_array['created'] = 03.03.10
$tag_array['foo'] = bar
Anyone have a code snippet that would take a html string and break it down like this?
I am still playing with the idea of use the META tag but I'm not sure that this would be the right thing to do.
TIA
Sean Shrum