Ver Mensaje Individual
  #16 (permalink)  
Antiguo 16/09/2011, 14:20
profion01
 
Fecha de Ingreso: septiembre-2011
Ubicación: Sant Marti de Centelles
Mensajes: 25
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: No consigo que funcione siempre

Cita:
Iniciado por andresdzphp Ver Mensaje
Notice: Trying to get property of non-object

ahora si necesitas hacer esto, coloca una parte del resultado de print_r

Código PHP:
Ver original
  1. echo '<pre>';
  2. print_r($xml);
  3. echo '</pre>';

Un trozo asi?

Código:
[3] => SimpleXMLElement Object
                (
                    [Title] => Memoria
                    [Icon] => 50
                    [MenuTitle] => Motherboard
                    [MenuIcon] => 42
                    [Group] => Array
                        (
                            [0] => SimpleXMLElement Object
                                (
                                    [Title] => Memoria fÃ*sica
                                    [Icon] => 50
                                    [Item] => Array
                                        (
                                            [0] => SimpleXMLElement Object
                                                (
                                                    [Title] => Total
                                                    [Icon] => 50
                                                    [Value] => 4095 MB
                                                )

                                            [1] => SimpleXMLElement Object
                                                (
                                                    [Title] => Usada
                                                    [Icon] => 50
                                                    [Value] => 1967 MB
                                                )

                                            [2] => SimpleXMLElement Object
                                                (
                                                    [Title] => Libre
                                                    [Icon] => 50
                                                    [Value] => 2127 MB
                                                )

                                            [3] => SimpleXMLElement Object
                                                (
                                                    [Title] => Uso
                                                    [Icon] => 50
                                                    [Value] => 48 %
                                                )

                                        )

                                )