|
Posted by Stephen Leaf on 10/13/05 05:16
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:
> <item_name>farm lettuces with reed avocado, crème
> fraîche, radish and cilantro</item_name>
Are you doing a:
DOMDocument::loadXML('<item_name>farm lettuces with reed avocado, crème
fraîche, radish and cilantro</item_name>');
You may have to manually convert the & to & tho I thought it did an
automatic convertion.
>
> 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
[Back to original message]
|