This method finds the children of an element. The result follows normal iteration rules.
public SimpleXMLElement SimpleXMLElement::children ([ string $ns [, bool $is_prefix = FALSE ]] )
The children() function finds the children of a specified node.
Parameter | Description |
---|---|
ns | An XML namespace. |
is_prefix | If is_prefix is TRUE, ns will be regarded as a prefix. If FALSE, ns will be regarded as a namespace URL. |
Returns a SimpleXMLElement element, whether the node has children or not.