<o id="329"> <cat> Biuro i firma/Biuro/Meble biurowe/Biurka </cat> <name> BIURKO JAY OLCHA </name> <attrs> <a name="Producent">producent</a> <a name="Kod_producenta">kod</a> </attrs> </o>
i taki php
foreach($xml->children() as $child) { // $role = $child->attributes(); foreach($child as $key) { // foreach($key->imgs->children() as $imgs) { } foreach($key->attrs->attributes() as $attrs) { } } }
Jak wyciągnąc wartość producent