You are here: Re: ampersand in dom with utf-8 « PHP « IT news, forums, messages
Re: ampersand in dom with utf-8

Posted by ac on 10/20/15 11:29

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация