FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Adding a CDATA section
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Adding a CDATA section [message #173566 is a reply to message #173555] Tue, 19 April 2011 02:37 Go to previous messageGo to previous message
Adam Harvey is currently offline  Adam Harvey
Messages: 25
Registered: September 2010
Karma:
Junior Member
JustWondering wrote:
> What I'm expecting is:
>
> <stocklist>
> <item type="fruit">
> <description><![CDATA[Apples are <b->yummy</b>]]></description>
> </item>
> <item type="vegetable">
> </item></stocklist>

I'm not really sure why you'd expect that dash in <b->, but at any rate,
running your code on a current PHP 5.3 build results in what I'd expect,
which is:

<?xml version="1.0" encoding="UTF-8"?>
<stockList>
<item type="fruit">
<description><![CDATA[Apples are <b>yummy</b>]]></description>
</item>
<item type="vegetable"/>
</stockList>

What version of PHP are you running?

Adam
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using exec with & - what might I get back?
Next Topic: php sessions and css file?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 04:08:00 GMT 2024

Total time taken to generate the page: 0.03831 seconds