xml rules

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

   I'm writing a bit of XML (wimpy player playlist), well PHP is...

   I know there are a handful of characters that need to be escaped. Is
there a php function suited to that? htmlentities?

Or should I just do these:

"  -> "
'  -> '
<  -> &lt;
 >  -> &gt;
&  -> &amp;


Re: xml rules

El 18/01/2010 5:17, jeff escribió:
Quoted text here. Click to load it

PHP has a whole bunch of libraries to handle XML:


Either XMLWriter or SimpleXML should take care of most of the internals.

-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com

Re: xml rules

stuff that would normaly break xml goes here

Site Timeline