ok.. break through!
(documentation here)
this works as a pure search:
$search_term = '';
$result = $xml->xpath("/products//item[name='".$search_term."']");
so in short... return ALL item nodes under PRODUCTS whose name EQUALS $search_term
that // is powerful b/c it'll skip any further tags in between (e.g. for me its some category assignment)
only issue here is that there is no forgiveness with the terms... b/c its equals and not like it wont return something unless u give it the full product name... if anyone know how to ramify this let me know please
NOW, my next goal is to be able to
return ALL item nodes whose type EQUALS $search_term... except that type looks like this:
<type>
<t1></t1>
<t2></t2>
</type>
again.. any help is appreciated.. there definitely isnt enough documentation on xpath