xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux