I load XML
file by simplexml_load_file
XML :
<list>
<top>
<test>
<id>1</id>
</test>
<test>
<id>2</id>
</test>
<test>
<id>3</id>
</test>
</top>
<test>
<id>4</id>
</test>
</list>
I want get all TEST
tag by one foreach
I dont use top
parent for get test
chilren
How i can ?