Re: XML dom encode

From: Date: Fri, 04 Oct 2002 12:23:24 +0000
Subject: Re: XML dom encode
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118870@lists.php.net to get a copy of this message
On 10/04/2002 09:14 AM, 翽 wrote:
But I need to modify this script so that I can set the encoding of the xml document to ISO-8859-1 so it would look like this: <?xml version="1.0" encoding=”iso-8859-1” ?> - <cds> - <cd id="1"> <title>sdfsdfsdf</title> <artist>ssdfsdf</artist> </cd> - <cd id="2"> <title>asdf</title> <artist>asdf</artist> </cd> - <cd id="3"> <title>sdfasdf</title> <artist>涩</artist> </cd> </cds> Any Ideas how to do this? I’ve been searching the net for solutions without any results.
This question was asked sometime ago but I could not understand if anybody actually solved it. Anyway, I use this XML writer class instead of DOM API as it allows me not only to generate nicely formatted XML documents with the character set encoding but also the stylesheet and DTD if I need it. Take a look: http://www.phpclasses.org/xmlwriter -- Regards, Manuel Lemos

« previous php.general (#118870) next »