outputting xml with DOM and ampersands
| From: | jonathan | Date: | Wed, 12 Oct 2005 17:40:02 +0000 |
| Subject: | outputting xml with DOM and ampersands | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223975@lists.php.net to get a copy of this message | ||
I am trying to output a file using DOM with php5.
It gives me an error with something like the following:
<item_name>farm lettuces with reed avocado, crème fraîche, radish and cilantro</item_name>
It does have the encoding set to utf-8. When I switch it to utf-16, it gives me an error on the $dom->saveXML();
Any ideas about how to fix this?
-jonathan