Dynamic Ink wrote:
Basically I am trying to turn something like this: <div>Hello <i>Joe</i>, nice to meet you</div> into this: <p>Hello <i>Joe</i>, nice to meet you</p>
In my naivity I'd propose doing a simple find and replace. After all, XML is nothing else than a string or a text file, so replacing the <div> with <p> and the </div> with </p> is almost trivial. You can do that line by line or for any size portion or even across one or more files. If it is really only about replacing all instances of one tag with another tag then throwing all this complicated stuff at it strikes me as a bit of overkill. Chances are that I am missing something here.
David _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php