Hi, how would you parse in php an xml like this one:
If I use PHP function getElementsByTagName to get the tags "book" it returns both the one with name "AAA" and the one with name "BBB", but I want to get them separately, since they are at different levels.
Is this possible?
Thanks
Code:
<archive>
<book name="AAA" />
<collection>
<book name="BBB" />
</collection>
</archive>
If I use PHP function getElementsByTagName to get the tags "book" it returns both the one with name "AAA" and the one with name "BBB", but I want to get them separately, since they are at different levels.
Is this possible?
Thanks