'; $xml=simplexml_load_file($filename); foreach($xml->children() as $child) { foreach($child->children() as $child1) { if($child1['name']!='Warszawa')continue; echo $child1['name'] . '
'; foreach($child1->children() as $child2) { echo '
  • Stacja '.$child2['number'] .': '. $child2['name'] . '

  • '; } if($child1['name']=='Warszawa')break; } } //} //print_r($vals); //*/ } ?>