xml

From: Date: Fri, 27 May 2005 13:16:49 +0000
Subject: xml
Groups: php.general 
Request: Send a blank email to php-general+get-215855@lists.php.net to get a copy of this message
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. It should put it in an array like this: output[0]['tagname']=... output[0]['arg1']=... output[0]['arg2']=... etc Example <xml> <someheader name="x"> <content attrib1="y" attrib2="z" /> <content attrib1="x" /> </someheader </xml> getxmldata("someheader","name","x") would result in data[0]['type']=content data[0]['attrib1']=y data[0]['attrib2']=z data[1]['type']=content data[1]['attrib1']=x Anybody got any ideas? With kind regards Andy

« previous php.general (#215855) next »