Just being curious, what would be the best practice to create/generate XLIFF(even simply xml) file (in my case from Excel data) in C# and .NET 4.5? There are several option available but then I would like to know (preferably discuss) which one would be more preferable option in terms of efficiency.
If you don't need to have the document in memory use XmlWriter
(and not XmlTextWriter) if you want to be able to modify the document after loading use XDocument
(Linq to Xml)
You may also want to take a look at the post I wrote some time ago comparing different Xml APIs: http://blogs.msdn.com/b/xmlteam/archive/2011/09/14/effective-xml-part-1-choose-the-right-api.aspx