Page 1 of 1

looking for a xml class

Posted: Fri Jun 17, 2011 6:43 am
by srdva59
hi,
i looking for a xml class that can handle for cdata and special caracters
like ã á ç
any one know something like that?
thanks a lot for your help
:)

Re: looking for a xml class

Posted: Fri Jun 17, 2011 8:40 am
by Eric!
I just wrapped my strings in cdata tags with a line of code and used the standard xml library.

Code: Select all

$string="<![CDATA[".$string."]]>";
I also did something like this to convert html entities to xml entities
http://www.lazycat.org/php-convert-entities.php