读取XML并将其写入数据库 [英] Read XML and write it in database
本文介绍了读取XML并将其写入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何逐行读取XML文件并插入数据库。
紧急
plz help
How to read an XML file line by line and insert into database.
Its Urgent
plz help
推荐答案
希望这会帮助你,
http://www.c-sharpcorner.com/UploadFile/xiankaylle/read-data-from-xml-in-Asp-Net- mvc-5 / [ ^ ]
hope this will help you out,
http://www.c-sharpcorner.com/UploadFile/xiankaylle/read-data-from-xml-in-Asp-Net-mvc-5/[^]
检查出来:http://csharp.net-informations.com/xml/xml-to-database.htm [ ^ ]
嗨彼得,
我只是尝试这种方式,并且如果XML格式正确,工作正常。
我有1个示例XML读取空间所以在阅读时
ds.ReadXml(xmlFile);
其抛出错误消息。
Hi peter ,
I tried thr' this way only and working fine if XML is in proper format.
I have 1 sample XML which contain Spaces so while reading
ds.ReadXml(xmlFile);
its throwing error msg.
这篇关于读取XML并将其写入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文