我是初学者。我想将数据从xml加载到数据库表中。我的目标是在下面指出,
报告已成功导入信息并退出。
Here is an example of xml file(name: x.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:/C:/Program%20Files%20(x86)/Caphyon/Advanced%20Web%20Ranking/transforms/exportrank/exportrankdata.xsd">
<header><col>Date</col><col>Search Engine</col><col>Keyword</col><col>Website</col><col>Page Rank</col><col>Alexa Rank</col><col>Position</col><col>Previous</col><col>Change</col><col>Best</col><col>Page</col><col>Result Type</col></header>
<row><cell><val>2013-03-11</val></cell><cell><val>Bing MSN</val></cell><cell><val>latest news</val></cell><cell><val>http://www.cnn.com</val></cell><cell><googlerank><rank><position>9</position><previous>-1</previous><lastdate>-1</lastdate></rank></googlerank></cell><cell><alexarank><rank><position>31</position><previous>-1</previous><lastdate>-1</lastdate></rank></alexarank></cell><cell><val>4</val></cell><cell><val>-</val></cell><cell><val>+</val></cell><cell><val>2</val></cell><cell><val>1</val></cell></row>
<row><cell><val>2013-03-11</val></cell><cell><val>Google</val></cell><cell><val>sport news</val></cell><cell><val>http://espn.go.com</val></cell><cell><googlerank><rank><position>8</position><previous>-1</previous><lastdate>-1</lastdate></rank></googlerank></cell><cell><alexarank><rank><position>28</position><previous>-1</previous><lastdate>-1</lastdate></rank></alexarank></cell><cell><val>6</val></cell><cell><val>-</val></cell><cell><val>+</val></cell><cell><val>1</val></cell><cell><val>1</val></cell></row>
</data>
请帮我开始分析您的代码。谢谢。