XML serialization or reading from XML Objects?

minniemanatee

New Member
I have different XML files that I will need to read. I'm wondering if I should deserialize the files into custom objects or just read the data using \[code\]XDocument\[/code\] objects and Linq-to-XML.The files range in size from 1-2kb to 3mb+, and the different objects also range in complexity (some have attributes, some have children, some both, some none).I figure it would be easier to work with the objects as opposed to Linq-to-XML, but creating those objects would require some time up front. Are there any rules of thumb or suggestions about when to deserialize as opposed to Linq?Thanks for any help!
 
Top