print_r ($sitemap->children()); me trae lo siguiente
Código PHP:
SimpleXMLElement Object ( [gallery] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Hostal [Folder] => Gallery/hostal ) [image] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [Thumb] => thumb0.jpg [Large] => 0.jpg [Caption] => Hostal Regina [Colour] => 181f0a ) [comentarios] => SimpleXMLElement Object ( ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [Thumb] => thumb1.jpg [Large] => 1.jpg [Caption] => Hostal Regina [Colour] => 181f0a ) [comentarios] => SimpleXMLElement Object ( ) ) ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Vistas [Folder] => Gallery/nerja ) [image] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [Thumb] => thumb0.jpg [Large] => 0.jpg [Caption] => Vista Nocturna [Colour] => eeeeeee ) [comentarios] => SimpleXMLElement Object ( ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [Caption] => eeeeeee ) [comentarios] => http://php-design-patterns.com ) ) ) ) )
la verdad como no lo consiga todo el trabajo habra sido en vano, ya que si no puedo obtener los indices, entonces no puedo indicarle en que galeria puedo insertar modificar o borrar.
muchas gracias espero vuestra ayuda