[Django]-C# vs Python: XML Handling/Processing Productivity

5👍

I am not familiar with C# but I dare say that it can competently mangle XML. So can Python, especially if you use something like lxml. Given this, and not knowing more about your specific background, I’d say it boils down to choice of programming language. If you like Python, Django is probably the most popular web framework. If you find C# more fun I guess ASP.NET MVC will be the way to go.

I’d like to add a note about web hosting. If you are budget limited then you might find Python compatible (read *NIX) hosting cheaper compared to Windows. If budget is not such a big constraint then disregard this factor.

Some people might have reservations about IDE support for Python. I have found PyDev quite up to the task for Python. There are of course plenty of other IDEs.

5👍

I am not familiar with Python, but I dare say that it can competently mangle XML. So can .NET, especially if you use something like LINQ to XML. Given this, and not knowing more about your specific background, I’d say it boils down to choice of programming language. If you like C#, ASP.NET MVC will be the way to go. If you find Python more fun I guess Django is probably the most popular web framework.

On a more serious, less cut-and-paste note, LINQ to XML is the nicest XML API I’ve used. Once you’ve grokked it – including the conversion operators available, and how it interacts with LINQ to Objects – it’s truly lovely.

Of course, the exact web framework you use is somewhat irrelevant to the XML processing – if your app is going to be doing lots of XML work, I’d certainly hope that most of the work would be done away from the UI layer anyway. Obviously it’ll be somewhat easier if they’re based on the same platform, but you could use IronPython for the UI and C# for the XML mangling, or vice versa.

Leave a comment