Decided to finally upgrade pyblosxom so that I can create blog entries using reStructuredText instead of raw HTML as I have been up until now.
I've been using ReStructuredText for documentation recently and it's much nicer to write than html, and it's similar to moinmoin's wiki syntax which I've very used to at this point.
I needed to generate a XML file required to submit T4 income tax information to the government, and figured I'd share it incase anyone else was looking for a solution to the same problem. The XML spec isn't that complicated, but the naming convention used by CRA is rather painful to deal with. The script isn't anything special but it should do the trick and can always be easily modified. It also does the schema verification so it will warn you if there are any errors in the xml structure or data.
Here is a copy of the code, see the source file for more information.
And here is a link to the governments site with more information about filing electronically:
Powered by PyBlosxom | RSS 2.0