📜  laravel 将 xml 导入数据库 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:35.976000             🧑  作者: Mango

代码示例1
$xml = new SimpleXMLElement($destinationPath.$fileName, null, true);

$xml = new DomDocument('1.0', 'utf-8'); // Or the right version and encoding of your xml file
$xml->load($destinationPath.$fileName);