Colleagues.
I have the following code:
<pais>
<estado tipo="RJ">
<bairro nome="listar">
<local>
<aparecer>Flamengo</aparecer>
</local>
<local>
<aparecer>Botafogo</aparecer>
</local>
<local>
<aparecer>Urca</aparecer>
</local>
</bairro>
</estado>
</pais>
And catching up with PHP like this:
$arquivo = "bairros.xml";
$xml = simplexml_load_file($arquivo);
foreach ($xml->estado->bairro as $listar) {
echo $listar->local->aparecer;
echo "<br>";
}
It only returns me the first neighborhood and not all.