src/XML/DOM/Node.php
public function getChildren( $nodeName = NULL )
	{
		if( !$nodeName )
			return $this->children;
		$list	= array();
		for( $i=0; $i<count( $this->children ); $i++ )
			if( $this->children[$i]->getNodeName() == $nodeName )
				$list[]	= $this->children[$i];
		return $list;
	}
public function getChildren( $nodeName = NULL )
	{
		if( !$nodeName )
			return $this->children;
		$list	= array();
		for( $i=0; $i<count( $this->children ); $i++ )
			if( $this->children[$i]->getNodeName() == $nodeName )
				$list[]	= $this->children[$i];
		return $list;
	}
public function getChildren ( $ nodeName = NULL ) { if ( ! $ nodeName ) return $ this -> children ; $ list = array ( ) ; for ( $ i = 0 ; $ i < count ( $ this -> children ) ; $ i ++ ) if ( $ this -> children [ $ i ] -> getNodeName ( ) == $ nodeName ) $ list [ ] = $ this -> children [ $ i ] ; return $ list ; }
Returns all Child Nodes.
@access		public
@param		string		$nodeName		Name of Child Node
@return		array
Returns all Child Nodes .