我有一个 excelsheet 我写入数据并将其导出为 xml 数据并获得如下所示的 xml 格式现在我使用下面的代码中的 php usign 解析此记录但我有一个国家下拉列表我想根据所选国家显示此记录意味着显示记录我使用 php 下拉菜单进入帖子,但由于没有父子关系,我可以与它联系,所以有什么办法吗?
<Row>
<Cell><Data ss:Type="String">Dr. nair</Data></Cell>
<Cell><Data ss:Type="String">12121 brok Blvd. </Data></Cell>
<Cell><Data ss:Type="String">WEST INDIES</Data></Cell>
<Cell><Data ss:Type="String">WI</Data></Cell>
<Cell><Data ss:Type="Number">90025</Data></Cell>
<Cell><Data ss:Type="String">310-444-1212</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">Dr. july</Data></Cell>
<Cell><Data ss:Type="String">Paldi. </Data></Cell>
<Cell><Data ss:Type="String">WEST INDIES</Data></Cell>
<Cell><Data ss:Type="String">WI</Data></Cell>
<Cell><Data ss:Type="Number">90025</Data></Cell>
<Cell><Data ss:Type="String">310-4544-1212</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">Dr. lol</Data></Cell>
<Cell><Data ss:Type="String">Paldi. </Data></Cell>
<Cell><Data ss:Type="String">New Zeland</Data></Cell>
<Cell><Data ss:Type="String">NZ</Data></Cell>
<Cell><Data ss:Type="Number">90025</Data></Cell>
<Cell><Data ss:Type="String">310-4544-1212</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">Dr. nik</Data></Cell>
<Cell><Data ss:Type="String">Paldi. </Data></Cell>
<Cell><Data ss:Type="String">India</Data></Cell>
<Cell><Data ss:Type="String">IN</Data></Cell>
<Cell><Data ss:Type="Number">90025</Data></Cell>
<Cell><Data ss:Type="String">310-4544-1212</Data></Cell>
</Row>
$excel = new XML2003Parser('sample.xml');
$table = $excel->getTableData();
// display instruction
echo "<table border=1>";
$data=array();
$data_city=array();
foreach($table["table_contents"] as $row){
$data[]=$row['row_contents'][3]['value'];
$data_city[]=$row['row_contents'][2]['value'];
print_r($data);
}