Re: To get an associative array from an XML-file?

From: Date: Thu, 02 Jan 2003 17:32:58 +0000
Subject: Re: To get an associative array from an XML-file?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3144@lists.php.net to get a copy of this message
Markus Wolff wrote:
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 I can't find an XML container in that package? And in docs/TODO i find the line "- Container for XML".
Are you sure there is a way of parsning an XML-file with Config? Regards, Fredrik Johansson

« previous php.pear.general (#3144) next »