Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a large xml file (which i converted to xml from Excel)and want to get a defined number of <NewSheet> nodes from it.and want to store each set of<NewSheet>in a new XML.(in C#)
What's the best way to handle this.
Posted
Updated 26-Feb-12 23:23pm
v2
Comments
CodeHawkz 27-Feb-12 5:51am    
Well, what is the problem you have? Cannot see a problem to solve. The best way depends on what you define as best. Is it the speed, memory efficiency or simplicity of the code or what? If you say overall, well you have to try and write some code and see. We are here to aid you in a problem, not to write code for you. :) Hope you get it.

XML files are plain text files, it would be easier to be manipulated as a string so that it can be split. Afterwards, you can convert each node to a XML Node and do as you please.

1 solution

What exactly are you stuck on? It seems straight forward if you use http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.aspx[^]
Which is what I use for my xml parsing/modifying.
 
Share this answer
 

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