Re: ampersand in dom with utf-8

From: Date: Sun, 16 Oct 2005 08:36:55 +0000
Subject: Re: ampersand in dom with utf-8
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-224193@lists.php.net to get a copy of this message
try this, if you need more entities to be included, just refer to `http://www.w3.org/2003/entities/iso8879/isolat1.ent' or find out its charcode by yourself. <?xml version="1.0"?> <!DOCTYPE html [ <!ENTITY egrave "&#x00e8;"> <!ENTITY icirc "&#x00ee;"> ]> <item_name>farm lettuces with reed avocado, cr&egrave;me fra&icirc;che, radish and cilantro</item_name> On 10/13/05, jonathan <news_php@arclocal.com> wrote: > I'm now getting this error: > > XML Parsing Error: undefined entity > > with the following entity at the first ampersand: > <item_name>farm lettuces with reed avocado, cr&egrave;me > fra&icirc;che, radish and cilantro</item_name> > > Why is an ampersand considered an undefined entity? The xml version > is: <?xml version="1.0"?> > > Any thoughts please? > > -jonathan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- all born, to be dying

« previous php.general (#224193) next »