Re: Xml Parse Extended Chars

From: Date: Thu, 06 Dec 2001 12:06:24 +0000
Subject: Re: Xml Parse Extended Chars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76865@lists.php.net to get a copy of this message
The only predefine entities in XML are &lt; &gt; &amp; all others need to be defined in the dtd. Best thing to do is leave the charatef as is in the xml and only run htmlentites on the contents when sending the contents to an html web browser. The xml will happily hold the character as it is. If you're using the XML Parser functions, you can choose the "target" character encoding: ISO-8859-1 (default) US-ASCII UTF-8 "Chris Noble" <us_spork@hotmail.com> wrote in message news:20011205213254.97177.qmail@pb1.pair.com... > Ive ran into a stumbling block trying to parse an xml document. I control > the parsing and the creation of the xml document so I can do any changes > from either side of it. Problem I have run into is my xml document has a é > in it. Ive ran htmlentities on it and it converts it to &eacute; but > everytime I try and run xml parse on that I get the error code of "undefined > entity at line 108". Has anyone ran into this problem before or know a > solution to handle these issues? > > Chris Noble > >

« previous php.general (#76865) next »