What is the correct method to load an XML file and re-write it as a CVS? (C# Only)

Posted by codesmack on Stack Overflow See other posts from Stack Overflow or by codesmack
Published on 2010-05-05T04:55:49Z Indexed on 2010/05/05 4:58 UTC
Read the original article Hit count: 233

Hello,

 I have a XML file that I want to load into an unknown object type.  (I say unknown object type because I am not sure what direction to go)

Once I have the data loaded I need to do some processing on certain elements that are now loaded into the new object. For sake of example, we can say that the xml file is full of elements named and within the car element I need to process the element.

Then once this is all done I need to write the file as a CSV file.

I would like to do this is the most direct way possible. (The less code the better)

I am using VS 2008 C#

Thank you, CodeSmack

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml