A classe SimpleXMLIterator

(PHP 5 >= 5.1.3, PHP 7)

Introdução

A classe SimpleXMLIterator provê iterações recursivas em todos os nós de um objeto SimpleXMLElement.

Sinopse da classe

SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator , Countable {
/* Métodos */
current ( void ) : mixed
getChildren ( void ) : object
hasChildren ( void ) : bool
key ( void ) : mixed
next ( void ) : void
rewind ( void ) : void
valid ( void ) : bool
/* Métodos herdados */
final public SimpleXMLElement::__construct ( string $data [, int $options = 0 [, bool $data_is_url = false [, string $ns = "" [, bool $is_prefix = false ]]]] )
public SimpleXMLElement::addAttribute ( string $name [, string $value [, string $namespace ]] ) : void
public SimpleXMLElement::addChild ( string $name [, string $value [, string $namespace ]] ) : SimpleXMLElement
public SimpleXMLElement::asXML ([ string $filename ] ) : mixed
public SimpleXMLElement::attributes ([ string $ns = NULL [, bool $is_prefix = false ]] ) : SimpleXMLElement
public SimpleXMLElement::children ([ string $ns [, bool $is_prefix = false ]] ) : SimpleXMLElement
public SimpleXMLElement::count ( void ) : int
public SimpleXMLElement::getDocNamespaces ([ bool $recursive = false [, bool $from_root = true ]] ) : array
public SimpleXMLElement::getName ( void ) : string
public SimpleXMLElement::getNamespaces ([ bool $recursive = false ] ) : array
public SimpleXMLElement::registerXPathNamespace ( string $prefix , string $ns ) : bool
public SimpleXMLElement::__toString ( void ) : string
public SimpleXMLElement::xpath ( string $path ) : array
}

Índice