Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/06/2010, 20:46
Avatar de wiwi74
wiwi74
 
Fecha de Ingreso: marzo-2008
Mensajes: 515
Antigüedad: 16 años, 2 meses
Puntos: 10
Respuesta: simplexml a mysql

Prueba este codigo:


Código PHP:

<?php

$xml 
simplexml_load_file("nbreport.xml");

$xmlText $xml->asXML();
$xmlText htmlentities($xmlText);
print 
"<pre>$xmlText</pre> \n";

foreach (
$xml->children() as $name => $value){
print 
"<b>$name:</b> $value<br /> \n";
// end foreach


?>