What is the correct method to load an XML file and re-write it as a CSV? (C# Only)
- by codesmack
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 <car> and within the car element I need to process the <mileage> 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#