tengo un archivo xml de donde recupero algunos datos que luego muestro en un campo select
Código PHP:
$xml_parser = simplexml_load_file($xmlFile);
$tipos = $xml_parser->MOVIL;
for($i=0; $i<$cantidad; $i++)
{
$tipo = $tipos[$i];
if ($modelo==$tipo->MODELO)
{
$modelo = $tipo->MODELO;
echo '<option value="'.$tipo->MODELO.'|'.$tipo->IMAGEN.'" selected>'.$tipo->MODELO."</option>\n";
}
}
gracias a todos por la ayuda.