DracoBlue/Craur — Issue #2: It's not possible to retrieve value, if it's associative
Author: DracoBlue
Created: 2012-03-05 08:41:25+00:00
State: open

If the value, which is returned, is a associative array it doesn't get returned.

$xml_string = file_get_contents(dirname(__FILE__) . '/fixtures/example_atom_feed.xml');
$document = Craur::createFromXml($xml_string);
// at the moment this: fails
$feed = $document->get('feed');
// at the moment this: works
$entries = $document->get('feed.entry[]');

This should be possible to do:

$feed = $document->get('feed');
$entries = $feed->get('entry[]');