Forum Moderators: coopster

Message Too Old, No Replies

How to use PHP to read XML?

         

irock

1:23 am on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just partner with a CPC company, and they have sent me XML data feed. I wish to know if there's a PHP program that grabs the data I need from the XML file so I could put them whereever I want.

I am counting out XSL as an option right now.

Thanks in advance.

copongcopong

2:00 am on Oct 15, 2002 (gmt 0)

10+ Year Member



There are actually 2 ways to parse XML using PHP. The first one is using Expat, installed with newer version of php (from James Clark i believe) and using XML DOM in PHP. I would recommend you to try to visit devshed.com or phpbuilder.com for they have a good tutorial on this. You may also try the articles in zend.com

you may also visit this site from php.net:

[php.net...]

lorax

2:27 am on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



irock,
You may also find these useful:

[phpbuilder.com...]

[phpbuilder.com...]