Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have large XML file(194 mb). I want to convert it into a CSV file using C# code. Please help me.
Thanks in advance.
have done like this but empty file is generated.help me..

static void Main(string[] args){ getsubnode();}public static void getsubnode(){ XmlDocument doc = new XmlDocument(); doc.Load("D:\\FXOPT\\EXP0D.xml"); StreamWriter wr = new StreamWriter("D:\\X.csv", true); string Temp = ""; wr.WriteLine(Temp); wr.Close(); }
[edit]added OP's update[/edit]
Please correct me if I am wrong.I dont want tags(element name) to be used in my code because file size is very big.
Posted

1 solution

I think you have discussed the same regarding HERE[^].

Please do not post a same sort of question again, rather update it and notify the people afterwords.
 
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