我想更好地了解需要这样的早餐食谱一个采取一个XML文档的基本步骤导出一个XML文档作为关系数据库的说明...转换使用XSLT
<?xml version="1.0" encoding="ISO-8859-1"?>
<breakfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>two of our famous Belgian Waffles with plenty of real maple syrup</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>light Belgian waffles covered with strawberries and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>Berry-Berry Belgian Waffles</name>
<price>$8.95</price>
<description>light Belgian waffles covered with an assortment of fresh berries and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>French Toast</name>
<price>$4.50</price>
<description>thick slices made from our homemade sourdough bread</description>
<calories>600</calories>
</food>
<food>
<name>Homestyle Breakfast</name>
<price>$6.95</price>
<description>two eggs, bacon or sausage, toast, and our ever-popular hash browns</description>
<calories>950</calories>
</food>
</breakfast_menu>
和“出口”可以这样说,使用XSLT的Access或MySQL数据库,创建了两个连接表:
- 表:breakfast_menu
- 场:menu_item_id
- 场:food_id
- 表:食品
- 场:food_id
- 场:名
- 现场:价格
- 场:描述
- 场:卡路里
如果有这个,你知道的在线教程,我会在学习有趣更多,以及。
谢谢。
XSLT可以用来产生必要的INSERT INTO SQL对表的填充命令。 但是,提供的XML没有与'menu_item_id'有关的任何数据。 – 2010-04-13 18:36:22
您是否有这个XSLT的外观样例? – Yaaqov 2010-04-13 19:49:53
呃,是否有某些原因导致你无法直接导出,即将你的MySQL表格连接到Access并且只是追加数据? – 2010-04-14 00:45:05