Click here to Skip to main content
14,979,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I want to import below XML file's data into SQL 2008 using .Net C# 2.0


1) http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2011.xml
2) http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2012.xml
3) http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-recent.xml
4) http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-modified.xml

I have already Used Dataset.ReadXML(xmlStr) but it gives me an error which is mentioned below.


"Nested table '' which inherits its namespace cannot have multiple parent tables in different namespaces."



So Please suggest any other solution if you have...

Thank you very much in advance.

Thanks,
Vipul
Posted

Try:

C#
Dataset.ReadXML("<myroot>" + xmlStr + "</myroot>");
   
I have used serialization and deserialization method to convert that xml file into database.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900