如何将XML文件解析为可读数据? [英] How to parse the XML file into readable data?
本文介绍了如何将XML文件解析为可读数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从XML文件中读取生物数据,以便将数据转换为节点和边缘,以形成网络图。我们必须使用C#或ASP.NET进行编码。怎么做?请帮助。
I want to read the biological data from an XML file in order to convert that data into nodes and edges, to form a network graph. We have to use C# or ASP.NET for the coding. How to do that? Please help.
推荐答案
如果您使用MSSQL作为后端,那么您可以使用openxml()
像这样
If you are using MSSQL as back-end then you could use the openxml()
Like this
SELECT *
FROM OPENXML (@idoc, '/ROOT/Customer/Order/OrderDetail',2)
WITH (OrderID int '../@OrderID',
CustomerID varchar(10) '../@CustomerID',
OrderDate datetime '../@OrderDate',
ProdID int '@ProductID',
Qty int '@Quantity');
请参阅以下内容/>
http: //www.drdobbs.com/windows/parsing-xml-files-in-net-using-c/184416669 [ ^ ]
https://www.altamiracorp.com/blog/employee-posts/performance-linq-to -sql-vs [ ^ ]
希望这可以帮助你......
Refer the following
http://www.drdobbs.com/windows/parsing-xml-files-in-net-using-c/184416669[^]
https://www.altamiracorp.com/blog/employee-posts/performance-linq-to-sql-vs[^]
Hope this helps you...
这篇关于如何将XML文件解析为可读数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文