Re: PEAR::Config question
| From: | Bertrand Mansion | Date: | Fri, 30 May 2003 07:05:52 +0000 |
| Subject: | Re: PEAR::Config question | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5699@lists.php.net to get a copy of this message | ||
<webmaster@dyingculture.net> wrote :
> Hi,
>
> I retrieve an array from an XML file then I change some values of the array.
> I want to save the array back to the XML file.
>
> I try to do this by replacing the root node then using the writeConfig()
> method.
> It works but in the saved XML file the line <?xml version="1.0"
> encoding="ISO-8859-1"?> is doubled which makes the file invalid.
>
> Is this a bug of PEAR::Config ?
> Is there another (cleaner) way to do this ?
You are probably not using the class correctly. If you want more help, post
some code reproducing the problem so I can have a look.
Bertrand Mansion
Mamasam