(PHP 5 >= 5.1.3, PHP 7)
The SimpleXMLIterator provides recursive iteration over all nodes of a SimpleXMLElement object.
$data
[, int $options = 0
[, bool $data_is_url = FALSE
[, string $ns = ""
[, bool $is_prefix = FALSE
]]]] )$name
[, string $value
[, string $namespace
]] )$name
[, string $value
[, string $namespace
]] )$ns = NULL
[, bool $is_prefix = FALSE
]] )$recursive = FALSE
[, bool $from_root = TRUE
]] )