There are a lot of great, easy to find ways to use php to parse xml from an external file. What if I want to parse a string for xml content tho? For example:
"<data>
this is a <a href-\"file.ext\">link</a>!
</data>"
The string within the <data> markup might be stored in a database. If I have a site that supports both HTML and Flash, I want the link to appear differently in Flash:
this is a <a href="asfunction:_level0.open,file.ext">link</a>.
So I want to parse the database string using xml to get the markup structure before I convert the link syntax. Any good functions or clases out there for parsing xml from a string -- NOT a file? Thanks!