looking for a xml class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
srdva59
Forum Commoner
Posts: 77
Joined: Sun Feb 15, 2009 10:58 am

looking for a xml class

Post 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
:)
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: looking for a xml class

Post 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
Post Reply