Re: [PHP] outputting xml with DOM and ampersands

2005-10-12 Thread Stephen Leaf
On Wednesday 12 October 2005 12:40 pm, jonathan wrote: > I am trying to output a file using DOM with php5. > > It gives me an error with something like the following: > farm lettuces with reed avocado, crème > fraîche, radish and cilantro Are you doing a: DOMDocument::loadXML('farm lettuces with

[PHP] outputting xml with DOM and ampersands

2005-10-12 Thread jonathan
I am trying to output a file using DOM with php5. It gives me an error with something like the following: farm lettuces with reed avocado, crème fraîche, radish and cilantro 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(); An