我有以下XML文件:如何使用XML更新我的SQL数据库?
<?xml version="1.0" encoding="utf-8"?>
<Patients>
<Patient EMail="[email protected]">
<FirstName>LeBron</FirstName>
<LastName>James</LastName>
</Patient>
<Patient EMail="[email protected]">
<FirstName>Kobe</FirstName>
<LastName>Bryant</LastName>
</Patient>
<Patient EMail="[email protected]">
<FirstName>Allen</FirstName>
<LastName>Iverson</LastName>
</Patient>
</Patients>
我想将它存放在我所成功/
做到,那么我增加了一些更多的数据相同的XML文件SQL数据库:
<?xml version="1.0" encoding="utf-8"?>
<Patients>
<Patient EMail="[email protected]">
<FirstName>LeBron</FirstName>
<LastName>James</LastName>
</Patient>
<Patient EMail="[email protected]">
<FirstName>Kobe</FirstName>
<LastName>Bryant</LastName>
</Patient>
<Patient EMail="[email protected]">
<FirstName>Allen</FirstName>
<LastName>Iverson</LastName>
</Patient>
<!-- New data starts here -->
<Patient EMail="[email protected]">
<FirstName>tr</FirstName>
<LastName>rson</LastName>
</Patient>
<Patient EMail="[email protected]">
<FirstName>Awerwren</FirstName>
<LastName>Iveww</LastName>
</Patient>
</Patients>
但它不会在运行时更新SQL数据库.....
我在做什么错?
-1这里既没有XML也没有问题。 – Jay 2010-10-08 11:30:19
你将不得不清除这个问题,否则它会被关闭。什么是数据库访问库和平台?你的更新代码是什么样的? – 2010-10-08 11:30:40
我们不能建议你,我们不能建议你,因为没有人会明白你在说什么 – 2010-10-08 11:31:29