You need to look at "disable_output_escaping" at 
http://www.w3.org/TR/xslt#disable-output-escaping

-- 
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

"Matthew Croud" <m...@obviousdigital.com> wrote in message 
news:2c4840c2-45db-4d6c-b5fa-2cb15b171...@obviousdigital.com...
>
> On 9 Sep 2009, at 14:26, Bastien Koert wrote:
>
>> On Wed, Sep 9, 2009 at 5:27 AM, Matthew  Croud<m...@obviousdigital.com> 
>> wrote:
>>>
>>> Hiya,
>>> I'm writing an app that let's my client upload images, the image  html 
>>> code
>>> is added to an XML file.
>>> Take a look at the <image> element below:
>>>
>>> <item Code="e1022">
>>>    <code>e1022</code>
>>>    <image><![CDATA[<img src="uploads/image2.jpg" alt="Homepage Image"
>>> width="124" height="70" />]]></image>
>>>    <name>Blue Ski Trousers</name>
>>>    <price>8.99</price>
>>>  </item>
>>>
>>> Now, whenever PHP writes this to the XML files, it turns the < and
>>> > into
>>> &lt; and &gt; . which means it does not display on the webpage.   How 
>>> can I
>>> prevent this from happening ?
>>>
>>> Many thanks,
>>> Matt
>>>
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>
>> str_replace?
>>
>>
>> -- 
>>
>> Bastien
>>
>> Cat, the other other white meat
>
>
> I've tried that but no matter what i do in the PHP side of things, as 
> soon as I save that XML the conversion takes place.
> Should the XML be encoded in any way, is there a setting somewhere  that 
> prevents this ? 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to