Re: Good xml to array class?
| From: | Maciek Ruckgaber Bielecki | Date: | Thu, 23 Sep 2004 14:58:18 +0000 |
| Subject: | Re: Good xml to array class? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197692@lists.php.net to get a copy of this message | ||
You also may consider wddx, which is very useful when you need to store
something to load it later to an array, and vice versa
Thu, Sep 23, 2004 at 07:40:45AM -0600, Chris Gregors wrote:
> I've had good success with this one:
> http://www.devdump.com/phpxml.php
>
>
>
> -----Original Message-----
> From: Curt Zirzow [mailto:php-general@zirzow.dyndns.org]
> Sent: Thursday, September 23, 2004 12:04 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Good xml to array class?
>
>
> * Thus wrote Brent Clements:
> > I've done searching on google for "xml parsers" and xml to array using
> php and honestly there are SOOOO many. Most of the classes I've taken a
> look at either aren't finished, or require dom to work.
> >
>
> Converting xml to an array isn't an easy of a task. given:
> <foo>
> <bar>value</bar>
> <baz>value</baz>
> <qaz avaluemabey="something" />
> </foo>
>
>
> How is one to make this into an array?
>
>
> > Either I write my own or I get help from you guys.
>
> If you have an sample xml file you wish to convert, you might
> consider posting. Someone might be able to recognize your pattern
> and come up with a way to convert it.
>
> >
> > I need it to not rely on DOM since the php which I am dealing with,
> only has expat compiled in.
>
> DOM and expat are two completly differnt things.
>
>
> Curt
> --
> The above comments may offend you. flame at will.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Maciek Ruckgaber Bielecki
"If you are out to describe the truth, leave elegance to the tailor."
--Albert Einstein--