PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
XML_Unserializer is removing some important characters

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> XML
View previous topic :: View next topic  
Author Message
dt84



Joined: 24 Sep 2008
Posts: 1

PostPosted: Wed Sep 24, 2008 8:09 am    Post subject: XML_Unserializer is removing some important characters Reply with quote

Hello Everyone,

I'm using XML_Unserializer from the PEAR package to convert some XML to a php array. The XML is very basic:

<response status="SUCCESS">
<object>some character data</object>
</response>

The problem I'm facing is that if "some character data" contains &lt; or &gt; (for < and >), these characters are being removed from the result.

"some character data" is usually HTML so what it needs to do is convert the &lt; and &gt; back to < and > rather than delete them.

I've looked through the XML_Unserializer code but haven't been able to determine when the characters are deleted.

Any help is greatly appreciated.

David.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> XML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement