Extending DOMDocument with Zend Framework
I've recently extended
I'm wanting to add a feature to
Ideally it would be like so:
Now, Zend Framework's extension of
I am not sure how to do this. I could construct the CSS selector query myself by back-tracking through the tree node and finding parent after parent, but this seems like a terribly inefficient way of going about this task.
Does anybody have any idea? I even tried to get the
CSS-style selectors get translated to XPath under-the-hood. Wherever Zend's wrapper makes the call through to DOMXPath::query, you'll have to provide a context node as the second argument. Or, that's one way at least. ^^
That's perfect :-) ! I knew I was right to ask.
|All times are GMT. The time now is 08:09 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0