If I want to work with XML, I usually design a class/bunch of classes that represent the data I need. Then I use XmlSerializer
to read in the XML and write it out again.
This gives me strongly typed classes to work with whilst the XML is "in memory".
I can of course use Linq on these classes without any issue.
Should I be using Linq to XML, and if so - why?
To me, in my circumstances, it seems to server only to remove the strong typing!