I\'m iterating through a set of SimpleXML objects, and I can\'t figure out how to access each object\'s parent node. Here\'s what I want:
$divs = simplexml-
If memory serves, an xpath() call returns one or more SimpleXMLElements. If that's the case, then you may be able to use something like:
xpath()
SimpleXMLElements
$div->xpath( '..' ); # or $div->xpath( 'parent::*' );