It would be really cool if you could use the search/reader methods on the base Element class that comes from the reader.
$reader = XmlReader::fromString(...);
$element = $reader->element('food.2')->sole();
$element->element('name')->sole();
$element->value('name')->sole();
$element->xpathElement('//name')->sole();
$element->xpathValue('//name')->sole();
I've started implementing this as a proof-of-concept.
It would be really cool if you could use the search/reader methods on the base
Elementclass that comes from the reader.I've started implementing this as a proof-of-concept.