[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [phoenix-dev] If I have an XML file to extract information from, what php calls/libraries do you suggest?
|
I originally started out using the simple XML APIs. Basically, it turns an
XML structure into something that looks an awful lot like a bunch of
objects. I wrote the SAX parsing stuff when I found out that the version of
PHP we were using didn't support the simple XML APIs.
Anyway.... Long story short... I like the Simple XML APIs and tend toward
recommending them.
The SAX parsing stuff I wrote works well, but takes a lot of effort to get
your brain around it.
Wayne
--
Wayne Beaton
The Eclipse Foundation
wayne.beaton@xxxxxxxxxxx
http://www.eclipse.org
http://wbeaton.blogspot.com/
http://www.planeteclipse.org/planet/
> -----Original Message-----
> From: phoenix-dev-bounces@xxxxxxxxxxx
> [mailto:phoenix-dev-bounces@xxxxxxxxxxx] On Behalf Of Nathan Gervais
> Sent: November 27, 2006 2:28 PM
> To: 'For developers on the new Eclipse.org website project.'
> Subject: RE: [phoenix-dev] If I have an XML file to extract
> information from,what php calls/libraries do you suggest?
>
> I've been using the XML Sax parser that Wayne put together a
> while back
>
>
>
> eclipse.org-common/system/xml_sax_parsing.php
>
>
>
> It turns the XML into objects that you can pull the
> information out of pretty easily
>
>
>
> Check out /home/scripts/newsfeeds.php for an example.
>
>
>
>
>
> Nathan Gervais
>
> Web Developer
>
> Eclipse Foundation
>
> [http://www.eclipse.org]
>
>
>
> ________________________________
>
> From: phoenix-dev-bounces@xxxxxxxxxxx
> [mailto:phoenix-dev-bounces@xxxxxxxxxxx] On Behalf Of Bjorn
> Freeman-Benson
> Sent: Monday, November 27, 2006 2:20 PM
> To: phoenix-dev
> Subject: [phoenix-dev] If I have an XML file to extract
> information from, what php calls/libraries do you suggest?
>
>
>
> Phoenix developers,
> Right now I'm using a variety of odd libraries to extra
> information from XML files to drive dynamic parts of the
> website. I'd like to clean that up - what calls/mechanisms do
> you all suggest? There's this stuff
> (http://us3.php.net/domxml) but it looks heavyweight and
> complex. There's this (http://us3.php.net/xml) but it's even
> more primitive. Perhaps this
> (http://us2.php.net/manual/en/ref.simplexml.php) is the best choice?
>
> Thanks for your help,
> Bjorn
>
>