The SimpleXMLIterator class
(No version information available, might only be in Git)
Introduction
The SimpleXMLIterator provides recursive iteration over all nodes of a SimpleXMLElement object.
Class synopsis
/* Inherited methods */
public SimpleXMLElement::__construct(
string
int
bool
string
bool
)
string
$data,int
$options = 0,bool
$dataIsURL = false,string
$namespaceOrPrefix = "",bool
$isPrefix = false)
public SimpleXMLElement::addAttribute(string
$qualifiedName, string $value, ?string $namespace = null): voidpublic SimpleXMLElement::addChild(string
$qualifiedName, ?string $value = null, ?string $namespace = null): ?SimpleXMLElementpublic SimpleXMLElement::attributes(?string
$namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElementpublic SimpleXMLElement::children(?string
}$namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElementChangelog
| Version | Description |
|---|---|
| 8.0.0 | Iterator methods (SimpleXMLIterator::hasChildren(), SimpleXMLIterator::getChildren(), SimpleXMLIterator::current(), SimpleXMLIterator::key(), SimpleXMLIterator::next(),SimpleXMLIterator::rewind(), SimpleXMLIterator::valid()) were moved to SimpleXMLElement. |
| 8.0.0 | SimpleXMLIterator implements Stringable now. |
↑ and ↓ to navigate • Enter to select • Esc to close • / to open