如果文件格式是这样的,如何从 XML 文件插入 SQL Server?
我想要列Description
、Alias
和Name
。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ldmlBCP47 SYSTEM "../../common/dtd/ldmlBCP47.dtd">
<ldmlBCP47>
<version number="$Revision: 6625 $"/>
<generation date="$Date: 2012-03-01 15:01:04 -0800 (Thu, 01 Mar 2012) $"/>
<keyword>
<key description="Time zone key" alias="timezone" name="tz">
<type description="Andorra" alias="Europe/Andorra" name="adalv"/>
<type description="Dubai, United Arab Emirates" alias="Asia/Dubai" name="aedxb"/>
<type description="Kabul, Afghanistan" alias="Asia/Kabul" name="afkbl"/>
<type description="Antigua" alias="America/Antigua" name="aganu"/>
<type description="Anguilla" alias="America/Anguilla" name="aiaxa"/>
<type description="Tirane, Albania" alias="Europe/Tirane" name="altia"/>