This is a minimal, and hopefully simple class to get data out of a xml file via path query. Like; /rootNode/subnode/node .. if you don't understand read the code source, you'll
dig it :) It was inspired from lots of great codes from the open source (mainly from zend.com and pear.php.net), wich are not necessarly related to xml, list them back would be
too long and I would surely forget some, so i felt like I had to give it back to the open source. now make something better out of it :) to do: - add support for duplicate
nodes. - add support fo namespaces. note to coders: - the $i & $o stands for input & output, i think it's a clean and efficient way to handle mainstream data trough
functions. - this code may not be appropriate for proffessional use since it does not meet the industry standards and is still in beta developement - I think it can handle
malformed or broken xml files without ending with infinites loops or crashing, but you shall respect some rules to in your xml file composition .. and avoid node repetition :/
i'll work on that soon. ** BOF file.xml ** data data ** EOF file.xml ** finally, feel free to report me bugs, suggestions or comments. - h3 at mindkind dot org
This function was widely inspired by dwebb's File Search function (see: http://www.zend.com/codex.php?id=301&single=1) It's basically the same function but now it returns an
array to support multiple matches, it's also more flexible because I used stristr() instead of a literal match, wich is quite useless for a search function...