-----Original Message-----
From: Manuel Lemos [mailto:[EMAIL PROTECTED]] 
Sent: 4. október 2002 12:23
To: [EMAIL PROTECTED]
Subject: [PHP] Re: XML dom encode

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


Thanks for the reply but I just have to go with this xmlwriter class if no one can 
help me with this php xmlDom thing, but I can't imagin that nobody has found a way to 
solve this, there are that many people using iso-8859-1 encoding.

But thanks again and if anybody has a solution for this I would be greatful.

Regards, David


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to