La clase SimpleXMLIterator
(PHP 5 >= 5.1.0)
Introducción
El clase SimpleXMLIterator proporciona una iteración recursiva sobre todos los nodos de un objeto SimpleXMLElement.
Sinopsis de la Clase
/* Métodos */
/* Métodos heredados */
final public SimpleXMLElement::__construct
( string
$data
[, int $options = 0
[, bool $data_is_url = false
[, string $ns = ""
[, bool $is_prefix = false
]]]] )
public void SimpleXMLElement::addAttribute
( string
$name
[, string $value
[, string $namespace
]] )
public SimpleXMLElement SimpleXMLElement::addChild
( string
$name
[, string $value
[, string $namespace
]] )
public SimpleXMLElement SimpleXMLElement::attributes
([ string
$ns = NULL
[, bool $is_prefix = false
]] )
public array SimpleXMLElement::getDocNamespaces
([ bool
}$recursive = false
[, bool $from_root = true
]] )Tabla de contenidos
- SimpleXMLIterator::current — Devuelve el elemento actual
- SimpleXMLIterator::getChildren — Devuelve los sub elementos de el elemento actual
- SimpleXMLIterator::hasChildren — Comprueba si el elemento actual tiene subelementos
- SimpleXMLIterator::key — Devuelve la clave actual
- SimpleXMLIterator::next — Mueve al siguiente elemento
- SimpleXMLIterator::rewind — Rebobina hasta el primer elemento
- SimpleXMLIterator::valid — Comprueba si el elemento actual es válido