On Wed, 18 Jul 2001, Ni...@Sw... wrote:
> The class doesn't support this. More accurately the evaluate()
> function doesn't support this. You'll have to break into the
> $object->nodes array to get this information if you are not happy with
> using string processing on the XPath addresses.
>
> I'm afraid this isn't an XPath question. There is no magic XPath expression that will do this for you.
>
> Try calling print_r($Object) and you will learn about the internal
> structure of the class, and which array to examine. I would advise
> that you do not use "back doors" into the class however, and that you
> use string routines to obtain the array that you desire from running
> evalutate('/publication/*'). Luckily/Unluckily PHP doesn't really
> support the concept of 'private' class data.
I found that class supports get_name($node) method, but it operates only
on individual nodes. Might be nice to have get_names($nodes) as well.
-Andrei
* Ethernet n.: something used to catch the etherbunny. *
--
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|