Re: To get an associative array from an XML-file?
| From: | Markus Wolff | Date: | Thu, 02 Jan 2003 17:12:17 +0000 |
| Subject: | Re: To get an associative array from an XML-file? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3143@lists.php.net to get a copy of this message | ||
On Thu, 02 Jan 2003 17:25:04 +0100
Fredrik Johansson <Fredrik@phpportalen.net> wrote:
> This is probobly a real newbie question. But how do I get an associative
> PHP-array from an XML-file? I have been looking at XML_Tree but it
> confuses me. It doesen't have to be an array, but i'm going to read
> config-values and need to have the config.xml in som kind of variable-form.
Have you considered using the Config package? It´s tailor-made for this
kind of job and allows you to store configuration values in multiple
file formats, XML being one of them.
Regards,
Markus
--
Markus Wolff <wolff@21st.de>