[PHP] Possible using XPath?

2008-03-27 Thread Christoph Boget
Let's say I have the following structure: ?xml version=1.0 encoding=UTF-8? root child id=c1 child id=gc1 child id=ggc1/ child id=ggc2/ /child child id=gc2 child id=ggc3/

Re: [PHP] Possible using XPath?

2008-03-27 Thread Robin Vickery
On 27/03/2008, Christoph Boget [EMAIL PROTECTED] wrote: Let's say I have the following structure: ?xml version=1.0 encoding=UTF-8? root child id=c1 child id=gc1 child id=ggc1/ child id=ggc2/ /child

Re: [PHP] Possible using XPath?

2008-03-27 Thread Christoph Boget
Is that possible? Or is this something I'd have to do programatically using the nodes returned by the XPath query? Basically, I'm just trying to get a fragment of the larger xml document... //[EMAIL PROTECTED]'gc3']/child/ancestor-or-self::* Thanks for the response. However, I

Re: [PHP] Possible using XPath?

2008-03-27 Thread Robin Vickery
On 27/03/2008, Christoph Boget [EMAIL PROTECTED] wrote: Is that possible? Or is this something I'd have to do programatically using the nodes returned by the XPath query? Basically, I'm just trying to get a fragment of the larger xml document... //[EMAIL