Re: xml

From: Date: Fri, 27 May 2005 16:48:45 +0000
Subject: Re: xml
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-215885@lists.php.net to get a copy of this message
Andy Pieters wrote:
Hi all I recently decided to switch to xml for the configuration of our programs. I am now looking for a good way to handle that xml data. Basically, what I am looking for is a functionality where I say Get tag x with attribute1=y, attribute2=z,..., read its contents and put it in an associative array.
If you want that much granular detail then you might want to use XPATH. The syntax is obviously a little different than PCRE, but once you understand it you'll find it's much more efficient (and easier) than building monstrously large PCRE's. http://php.net/manual/en/function.dom-domxpath-query.php http://www.w3.org/TR/xpath#path-abbrev

« previous php.general (#215885) next »