[phpXML] Re: [phpXML] Re: [phpXML] Re: [phpXML] Help with XPath expression
Brought to you by:
bs_php,
nigelswinson
From: <nig...@us...> - 2001-10-09 13:10:47
|
> Eh, no, because that just gives me back "/publication/foo1[1]", > "/publication/foo2[1]" and so on. I just want the array of "foo1", > "foo2" returned. >=20 > On Wed, 18 Jul 2001, Ni...@Sw... wrote: > > /Publication/* 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. Nigel -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |