Ya hice una corrección
Código PHP:
Ver originalforeach($xml->pelicula->children() as $obteneractores ){
}
Y ya veo resultados:
object(SimpleXMLElement)[3]
object(SimpleXMLElement)[5]
object(SimpleXMLElement)[3]
public 'actor' =>
array (size=2)
0 =>
object(SimpleXMLElement)[5]
public 'nombre' => string 'Isabel' (length=6)
public 'personaje' => string 'Interpreta a mujer pelicula 1' (length=29)
1 =>
object(SimpleXMLElement)[6]
public 'nombre' => string 'Juan' (length=4)
public 'personaje' => string 'Interpreta a hombre pelicula 1' (length=30)
Pero por qué no me devuelve todos los actores, deberían ser 4, dos por cada película.
Qué estoy haciendo mal??