我在远程服务器上托管了以下文件,我想将此文件中的值添加到 Mysql 表中。一共有四张桌子。
以下是该文件的内容。我试图构建一个名称值对 PHP 数组,但我不知道如何插入这些值。
<?xml version="1.0" encoding="utf-8"?>
<database name='anahuacForm'>
<table name='Details'>
<row>
<col name='_id'>1</col>
<col name='IDno'>Ggvbbvhh</col>
<col name='GIDno'>Vvb</col>
<col name='Name'>Bnb</col>
<col name='Owner'></col>
<col name='Breed'>Marwari horse</col>
<col name='Gender'>Gender</col>
<col name='Date'>16-May-2013</col>
<col name='Notes'></col>
<col name='Nature'>Nature</col>
<col name='Color'>Color</col>
<col name='Sire'></col>
<col name='Dam'></col>
<col name='Height'>0.0hh</col>
<col name='Foaled'></col>
<col name='Acquired'>16-May-2013</col>
<col name='image'>null</col>
</row>
</table>
<table name='Vaccination'>
<row>
<col name='_id'>1</col>
<col name='flag'>Pending</col>
<col name='HVID'>Ggvbbvhh</col>
<col name='Vname'>Rabies</col>
<col name='Vdate'>16-5-2013 </col>
<col name='Vtime'>17:22</col>
</row>
</table>
<table name='DeWorming'>
<row>
<col name='_id'>1</col>
<col name='flag'>Pending</col>
<col name='DVID'>Ggvbbvhh</col>
<col name='Dname'>Large strongyles</col>
<col name='Ddate'>16-5-2013 </col>
<col name='Dtime'>17:22</col>
</row>
</table>
<table name='Weight'>
<row>
<col name='_id'>1</col>
<col name='HWID'>Ggvbbvhh</col>
<col name='Wmeasure'> 32.27lbs</col>
<col name='WDate'>2013-05-16</col>
</row>
</table>
</database>