I may have overlooked it somewhere, but what is the nice way to get all elements of a specific name (similar to the old getElementsByTagName) via the Dart version of PetitParser?
I managed to load an XML file and successfully parse it using PetitParser, but now I want to go through all nodes with a specific name (eg. see below nodes with the "importantData").
The result.value.length also seems to be very high (16654) for the 665 "importantData" nodes from my test xml file which are in result.value.children[1].children
<xml>
<toplevel>
<importantData>
<attribute1>Value</attribute1>
<attribute2>Value</attribute2>
</importantData>
<importantData>
<attribute1>Value</attribute1>
<attribute2>Value</attribute2>
</importantData>
<importantData>
<attribute1>Value</attribute1>
<attribute2>Value</attribute2>
</importantData>
...
</toplevel>
</xml>