【发布时间】:2017-01-31 21:32:37
【问题描述】:
我正在尝试将 XML 文件导入 Access,但它会创建 9 个不相关的表。即子记录导入到子表中,但无法知道哪些子记录属于哪个父表。
如何导入数据来维护父子节点(记录)之间的关系?
这是 XML 数据的示例:
<?xml version="1.0" encoding="UTF-8"?>
<iavmNotice xmlns="http://stuff.com" noticeId="138643">
<xmlUrl>https://fakexmlurl.xml</xmlUrl>
<htmlUrl>https://fakehtmlurl.htm</htmlUrl>
<iavmNoticeNumber>2012-B-0080</iavmNoticeNumber>
<title>Cisco Vulnerability</title>
<type>B</type>
<state>FINAL</state>
<lastSaved>2012-08-24T10:34:13</lastSaved>
<precoordDueDate>2012-08-23T11:00:00</precoordDueDate>
<releaseDate>2012-08-23</releaseDate>
<acknowledgeDate>2012-08-28</acknowledgeDate>
<knownExploits>true</knownExploits>
<knownDodIncidents>false</knownDodIncidents>
<executiveSummary>Cisco incidents.</executiveSummary>
<techOverview>
<entry>
<title>2012-2490</title>
<description>Cisco ID 71.</description>
</entry>
<entry>
<title>2012-2525</title>
<description>Cisco ID 69.</description>
</entry>
</techOverview>
<fixAction>Apply appropriate vendor update</fixAction>
<note><b>Upgrade later</b><br><br></note>
<tempMitStrat>
<header><b>Cisco </b></header>
<body><br>None</body>
</tempMitStrat>
<vulnAppsSysAndCntrmsrs>Cisco IP Communicator 8.6<br><br></vulnAppsSysAndCntrmsrs>
<references>
<reference>
<title>Release Notes for Cisco IP Communicator Release 8.6</title>
<url>http://www.fakeurl.com/html</url>
</reference>
</references>
<deepSightBids>
<bid>54850</bid>
</deepSightBids>
<revisions>
<revision>
<majorNum>0</majorNum>
<minorNum>0</minorNum>
<type>MAJOR</type>
<date>2012-08-23</date>
<details>Initial Release</details>
</revision>
<revision>
<majorNum>0</majorNum>
<minorNum>1</minorNum>
<type>MINOR</type>
<date>2012-08-24</date>
<details>Updated Retina Audit</details>
</revision>
</revisions>
<patches>
<patch>
<type>V</type>
<title>Cisco</title>
<url>http://www.fake.com</url>
</patch>
</patches>
<scanners>
<retina>Audit 2548</retina>
</scanners>
<vms>
<stigFindingSeverity>1</stigFindingSeverity>
<affectedEnvs>B</affectedEnvs>
<posture>1029</posture>
<posture>1712</posture>
<posture>59</posture>
</vms>
</iavmNotice>
我很难理解如何将其转换为 xslt 文件
【问题讨论】:
-
你看过this question吗?
-
我有,但我的 XSLT 文件确实有效。这就是我需要帮助的地方。
-
在这种情况下,您应该 edit 您的问题包括您对 XSLT 文件的尝试,以便人们可以帮助您。 (没有它,这只是一个“为我编写代码”的问题。)
-
我更新了我的问题。这是我第一次使用 XSLT,所以可能看起来很乱。