I have 150 Nodes in XML ,It have data,,, i want to store Only 5 nodes value into SQl Db in a runtime......
Can u Suggest me
Thanks In Advance
I have 150 Nodes in XML ,It have data,,, i want to store Only 5 nodes value into SQl Db in a runtime......
Can u Suggest me
Thanks In Advance
Your "question" is very vague and broad - and therefore, so is my answer:
I would do this:
XDocument
using Linq-to-XML, iterate over your nodes and extract the five attributes from each node and store them into an instance of that data class you created
when you're done with your XML, you could then open a connection to the SQL Server
INSERT
statementSo - what part of this process do you need some help with, and what exactly is it you're dealing with?
SO users are glad to help if you have a concrete problem - we're not here to just "gimme the code", however.....
Can you post some sample data / example related to your question? Your question does not address whether you want to select top 5 nodes or else?