You do not really understand what “use” is, but you clearly need a form of XML analysis / search.
For example, try xml-loading this line and the var_dumpresult. Just listing the various properties should show you the possibilities.
Later, you can try XPath search and more advanced tricks to speed things up.
$xml = str_replace(array("diffgr:","msdata:"),'', $xml);
$xml = "<package>".$xml."</package>";
$data = simplexml_load_string($xml);
$rooms = $data->package->diffgram->DocumentElement->TablaEstadoHabitacion;
print "We have " . count($rooms) . " rooms: \n";
foreach($rooms as $i => $room)
{
print "Room {$i}: id={$room['id']} (official id: {$room->IdHabitacion}\n";
print "Entrada {$room->FechaEntrada}, salida {$room->FechaSalida}\n...\n";
}
There are several parsers you can use, it is quick and dirty.
More details here .
Large datasets
: XML , foreach .
, , , , , XMLParser, XMLReader , / (, HTML) .
, XML, HTML () . HTML HTTP-, PHP, ( HTML 40K, ) ( "" - , . ).