Re: Parsing XML

From: Date: Thu, 27 Nov 2008 20:56:18 +0000
Subject: Re: Parsing XML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-283861@lists.php.net to get a copy of this message
Ashley Sheridan wrote:
Hi All, I've run into a bit of a problem. I need to parse some fairly detailed XML files from a remote website. I'm pulling in the remote XML using curl, and that bit is working fine. The smaller XML documents were easy to parse with regular expressions, as I only needed bit of information out of them. The live server I'm eventually putting this onto only has domxml for working with XML. I've been trying to find the pecl extension for this to install on my local machine, but the pecl.php.net site is a bit nerfed for this extension (I'm getting a file not found error message.) Do any of you have a copy of this extension, or failing that, a suggestion of how I can parse XML files without having to install anything on the remote server, as I do not have that level off access to it. Thanks Ash www.ashleysheridan.co.uk
standard response which has helped a few recently :p "you could give this a go if you like (one i made earlier): http://programphp.com/xmlparser.phps - class at the top, usage at the bottom."

« previous php.general (#283861) next »