Re: XML and htmlentities conditionally?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
> I have a block of XML that looks as follows:
> 
> <name>&lt;*_~_*&gt; Røyken VGS &lt;*_~_*&gt;</name>

> My question is, can I in any way efficiently (i -stress- efficiently, if 
> anyone read my previous XML and special characters post its a rather 
> large XMl file (breaking 18mb now) and speed is of the essence) cause 
> html_entity_decode to not decode those tags?

What's the end results your looking for?

If you are trying to pass that data straight through the parser try
wrapping it in CDATA.

<name><![CDATA[&lt;*_~_*&gt; Røyken VGS &lt;*_~_*&gt;]]></name>

-- 

s/:-[(/]/:-)/g


Brian        GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux